]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
standalone: Provide a helper to clear the host runvar
authorIan Campbell <ian.campbell@citrix.com>
Wed, 29 Oct 2014 10:41:23 +0000 (10:41 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 29 Oct 2014 16:49:14 +0000 (16:49 +0000)
This clears the host flag used for single-host test cases.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
standalone

index daab7ae2b8c9e7a2ea2f65ba49a152af07afb37f..c1139f817eadce2c8fa1d9de9b03b8e6960ad841 100755 (executable)
@@ -29,6 +29,12 @@ Operations:
 
   Required options: -h HOST
 
+* reset-host [cf] [JOB]
+
+  Allow a job which has been run before to run on a different host
+  next time. Otherwise osstest will complain if you change the host
+  which a job is running on on successive runs.
+
 Options:
 
 -c FILE, --config=FILE        Use FILE as configuration file
@@ -200,6 +206,18 @@ case $op in
        fi
        ;;
 
+    reset-host)
+       need_flight;
+
+       if [ $# -lt 1 ] ; then
+           echo "run-job: Need job" >&2
+           exit 1
+       fi
+
+       job=$1; shift
+       ./cs-adjust-flight -v $flight runvar-del $job host
+       ;;
+
     run-job)
        need_flight; need_host