[gnome-ostree] autobuilder: Add --skip option



commit 7cdbc1d6a12ed4d100fe95b6d7e5dd6d7ff52e19
Author: Colin Walters <walters verbum org>
Date:   Fri Mar 15 09:51:25 2013 -0400

    autobuilder: Add --skip option
    
    This gives more control to server administrators.  Namely, since
    nested virt is too slow, I need the ability to --skip smoketest for
    now.

 src/js/builtins/autobuilder.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/js/builtins/autobuilder.js b/src/js/builtins/autobuilder.js
index a1de1e4..907e92c 100644
--- a/src/js/builtins/autobuilder.js
+++ b/src/js/builtins/autobuilder.js
@@ -48,7 +48,8 @@ const Autobuilder = new Lang.Class({
        this.parent();
 
         this.parser.addArgument('--autoupdate-self', { action: 'storeTrue' });
-        this.parser.addArgument('--stage');
+        this.parser.addArgument('--skip', { action: 'append',
+                                           help: "Don't process tasks after this" });
 
        this._buildNeeded = true;
        this._initialResolveNeeded = true;
@@ -76,7 +77,8 @@ const Autobuilder = new Lang.Class({
        this._src_db = new JsonDB.JsonDB(this._snapshot_dir);
 
        this._taskmaster = new Task.TaskMaster(this.workdir.get_child('tasks'),
-                                                 { onEmpty: Lang.bind(this, this._onTasksComplete) });
+                                                 { onEmpty: Lang.bind(this, this._onTasksComplete),
+                                                   skip: args.skip });
        this._taskmaster.connect('task-executing', Lang.bind(this, this._onTaskExecuting));
        this._taskmaster.connect('task-complete', Lang.bind(this, this._onTaskCompleted));
 


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