[gnome-continuous] task: Remove any existing output.txt



commit e943e9b484f3eaab9a5b2e75697ef98d9b0476e1
Author: Colin Walters <walters verbum org>
Date:   Tue Oct 15 06:36:25 2013 -0400

    task: Remove any existing output.txt
    
    This is important for local/ builds, as otherwise we get the new build
    output interleaved with the old.

 src/js/task.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/task.js b/src/js/task.js
index e321440..706550f 100644
--- a/src/js/task.js
+++ b/src/js/task.js
@@ -400,6 +400,7 @@ const TaskRunner = new Lang.Class({
        context.set_environment(childEnv);
        if (this.taskData.taskDef.PreserveStdout) {
            let outPath = this.taskCwd.get_child('output.txt');
+           GSystem.shutil_rm_rf(outPath, cancellable);
            context.set_stdout_file_path(outPath.get_path());
            context.set_stderr_disposition(GSystem.SubprocessStreamDisposition.STDERR_MERGE);
        } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]