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

[Xen-devel] [PATCH] standalone: Provide a helper to clear the host runvar



Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 standalone | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/standalone b/standalone
index b5eb9bc..d19e5ab 100755
--- a/standalone
+++ b/standalone
@@ -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
 
-- 
1.9.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.