Message ID | 1412942554-752-1-git-send-email-ian.campbell@citrix.com |
---|---|
State | New |
Headers | show |
Ian Campbell writes ("[PATCH RFC OSSTEST 01/19] standalone: Provide a helper to clear the host runvar"): > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Of course this only works for jobs with a single host whose runvar is `host' rather than (say) `src_host' or whatever. But: Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
On Fri, 2014-10-10 at 14:51 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH RFC OSSTEST 01/19] standalone: Provide a helper to clear the host runvar"): > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > > Of course this only works for jobs with a single host whose runvar is > `host' rather than (say) `src_host' or whatever. Ah yes, I suppose I never run such tests in standalone mode. Is there some way to specify multiple hosts? OSSTEST_HOST_SRC_HOST= and OSSTEST_HOST_DST_HOST= perhaps? > But: > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff --git a/standalone b/standalone index daab7ae..c1139f8 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
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> --- standalone | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)