From patchwork Fri Oct 10 12:02:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 38572 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 722D7202DB for ; Fri, 10 Oct 2014 12:03:50 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id d1sf736452wiv.2 for ; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=EhLCxmaOzCt0/CQBDXFZd10/eaqIoNPkIoxws9Rc9ZI=; b=Mki5hI/5iws+yT47fwbfrub/ybsGda9RlSPpDDIucEMxl6jfRqD6pB+WtyPs4rPjlt mLC0M5yTNWqpA0f0YsXQCwNKdZQw3R6irZAPKFde8kaJoAZpLOdYjh9peK+8LGYXS8jg 6KGApHSY6Odt3eNzN2EC23+sV/aOdxn4KEhVNhytXtCGniUA84FX41imQVIxFKUEqwhw 9Eb2+XLGn3zI3nSFXKrp3k+AAKQdichpnnaH4w5nHg5bV+2xGP8owmq7m7L1EnAEHlEz 1/krkX5khNsDjjRf5NRv7oWsi9XEr4bZRU3v9e05fyjS2CTfi86XUi5RFlU4NDqzixC8 yVAA== X-Gm-Message-State: ALoCoQllI0JlnHo6z+DD6AwDHZ6yyBOekTrO8oSm31HzpZ7OuIERXvSngnUX7mC4ZQ/gkduh7VM6 X-Received: by 10.180.188.145 with SMTP id ga17mr967530wic.3.1412942629567; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.4 with SMTP id r4ls286104lae.24.gmail; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) X-Received: by 10.112.63.70 with SMTP id e6mr2904929lbs.92.1412942629381; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id b11si8791941lbq.121.2014.10.10.05.03.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 05:03:49 -0700 (PDT) Received-SPF: temperror (google.com: error in processing during lookup of patch+caf_=patchwork-forward=linaro.org@linaro.org: DNS timeout) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so3023552lab.40 for ; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) X-Received: by 10.113.10.9 with SMTP id dw9mr4304786lbd.46.1412942629224; Fri, 10 Oct 2014 05:03:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp414355lbz; Fri, 10 Oct 2014 05:03:48 -0700 (PDT) X-Received: by 10.221.59.2 with SMTP id wm2mr491298vcb.52.1412942626493; Fri, 10 Oct 2014 05:03:46 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id v7si1014140vdh.99.2014.10.10.05.03.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 05:03:46 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XcYuW-0002b7-Hg; Fri, 10 Oct 2014 12:03:04 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XcYuU-0002Ye-DN for xen-devel@lists.xen.org; Fri, 10 Oct 2014 12:03:02 +0000 Received: from [85.158.137.68:57785] by server-14.bemta-3.messagelabs.com id 54/A9-01575-5FAC7345; Fri, 10 Oct 2014 12:03:01 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-11.tower-31.messagelabs.com!1412942579!12742925!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3368 invoked from network); 10 Oct 2014 12:03:01 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 10 Oct 2014 12:03:01 -0000 X-IronPort-AV: E=Sophos;i="5.04,691,1406592000"; d="scan'208";a="180116912" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Fri, 10 Oct 2014 08:02:36 -0400 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1XcYu2-0008TC-VK; Fri, 10 Oct 2014 13:02:35 +0100 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 10 Oct 2014 13:02:34 +0100 From: Ian Campbell To: Date: Fri, 10 Oct 2014 13:02:16 +0100 Message-ID: <1412942554-752-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1412942404.27111.12.camel@citrix.com> References: <1412942404.27111.12.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH RFC OSSTEST 01/19] standalone: Provide a helper to clear the host runvar X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=temperror (google.com: error in processing during lookup of patch+caf_=patchwork-forward=linaro.org@linaro.org: DNS timeout) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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