From patchwork Wed Feb 12 11:10:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24540 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6063A20143 for ; Wed, 12 Feb 2014 11:13:07 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id c41sf21185025yho.1 for ; Wed, 12 Feb 2014 03:13:06 -0800 (PST) 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 :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=CDs0jrE2h17OODb2D8+GBL/8ece7cRQyux8U+KDjsz0=; b=N4nVHZALyLT71n9fIUzLb6/TLX78cyu0nfJQ1gRiMoxaYSnKKFN3RXtSWMi6AYW3Gr 6zipupR4yZPrOwHlpwn/GVD3iveNEXGDC5bBq3mekabnxX10OaIY8iuhd1T/wHjD2b5l F3r66Ma+sFjXF7M1mMs9+xTt6AqoaksvW3b0bEbTff2AhzWVIK0wtk8QdfIbB/oWu2kp 3Nqy0pGptFOpZrDZhVM/rmxUjnHbhVbmyzSsC8QugjFzz5sQoQ5IPqczDAVIwDwWjv3y 9EBC2EXySPJuDiMopMRyjCNxbYkkrhB/PU0fTDs8pV0Hpv9OItS9JnCYmKmWn9unWGC4 7mGg== X-Gm-Message-State: ALoCoQkcaEYkDRwtYYK0Z+Wr/B9qysnLTyAZ06ra4vccqQwhrf8ZgiN9V7NVUsQoZv5gTxUEM4e+ X-Received: by 10.58.132.210 with SMTP id ow18mr1442341veb.8.1392203586532; Wed, 12 Feb 2014 03:13:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.103 with SMTP id g94ls2234034qgd.82.gmail; Wed, 12 Feb 2014 03:13:06 -0800 (PST) X-Received: by 10.220.131.210 with SMTP id y18mr33104620vcs.12.1392203586360; Wed, 12 Feb 2014 03:13:06 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id qi7si7175185veb.72.2014.02.12.03.13.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 03:13:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ie18so6794826vcb.40 for ; Wed, 12 Feb 2014 03:13:06 -0800 (PST) X-Received: by 10.52.171.39 with SMTP id ar7mr27169062vdc.5.1392203586267; Wed, 12 Feb 2014 03:13:06 -0800 (PST) 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.220.174.196 with SMTP id u4csp28360vcz; Wed, 12 Feb 2014 03:13:05 -0800 (PST) X-Received: by 10.58.4.138 with SMTP id k10mr32753222vek.8.1392203585878; Wed, 12 Feb 2014 03:13:05 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id f7si7173579vcz.132.2014.02.12.03.13.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Feb 2014 03:13:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) 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 1WDXiV-000135-FB; Wed, 12 Feb 2014 11:10:59 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDXiT-00012y-If for xen-devel@lists.xen.org; Wed, 12 Feb 2014 11:10:57 +0000 Received: from [85.158.137.68:3829] by server-7.bemta-3.messagelabs.com id 57/A1-13775-0C65BF25; Wed, 12 Feb 2014 11:10:56 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-12.tower-31.messagelabs.com!1392203453!320868!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.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11719 invoked from network); 12 Feb 2014 11:10:56 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-12.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 12 Feb 2014 11:10:56 -0000 X-IronPort-AV: E=Sophos;i="4.95,832,1384300800"; d="scan'208";a="101875163" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 12 Feb 2014 11:10:51 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Wed, 12 Feb 2014 06:10:51 -0500 Received: from spare.cam.xci-test.com ([10.80.2.80] helo=kazak.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WDXiN-0006os-1i; Wed, 12 Feb 2014 11:10:51 +0000 From: Ian Campbell To: Date: Wed, 12 Feb 2014 11:10:51 +0000 Message-ID: <1392203451-15422-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.8.5.2 MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST] ts-hosts-allocate-Standalone: abort if the host to use has changed 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=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: When a job has been run once then the selected host is stored in a runvar and used from then on. This means that if you try to run on a different host (by changing the config or by changing OSSTEST_HOST_HOST) then you may be surprised when things happen to the original host and not the new one. Abort when this is detected. Changing host requires you to run: ./cs-adjust-flight -v $flight runvar-del $job host $flight = standalone by default $job = test-x-y-z or build-x etc host = the literal string host (not either of the host names) Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- ts-hosts-allocate-Standalone | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ts-hosts-allocate-Standalone b/ts-hosts-allocate-Standalone index 4ce0c0d..88a5d28 100755 --- a/ts-hosts-allocate-Standalone +++ b/ts-hosts-allocate-Standalone @@ -31,5 +31,13 @@ foreach my $ident (@ARGV) { $host ||= $c{"TestHost_$ident"}; $host ||= $c{TestHost}; $host || die "need host setting for $ident"; + + my $expected = $ENV{'OSSTEST_HOST_'.uc $ident} + || $c{"TestHost_$ident"} + || $c{TestHost}; + + die "$ident configuration mismatch $r{$ident} != $expected" + if $r{$ident} && $r{$ident} ne $expected; + store_runvar($ident, $host); }