From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 01/20] standalone: Provide a helper to clear the host runvar Date: Wed, 29 Oct 2014 10:41:23 +0000 Message-ID: <1414579302-6692-1-git-send-email-ian.campbell@citrix.com> References: <1414579268.29975.13.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1414579268.29975.13.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This clears the host flag used for single-host test cases. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- standalone | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 2.1.1