From patchwork Mon Apr 14 10:31:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 28309 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 404A62036A for ; Mon, 14 Apr 2014 10:32:58 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf43747874oac.11 for ; Mon, 14 Apr 2014 03:32:57 -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 :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=wt6/5DX6jpdqtrDjJofmYwYO9X+T+bH19IWhYBooQJY=; b=Q1/w6yZkkewdlEV6n6o9YVP9OLX6E9eQ82rrwUteiaDc0KWpIr7HfLkATSueaox7dk pau8ZKlw/U8eupopX/Mi/Kk4xUaxOYr1tcFaxo+NLfz3mjlucLfdo99Vl9AODS4UMCvj nzeyaesVhJj8uUW3/M/ZNE6FSirh1cEfq/qA8S5eQWS70iUCUcmHmmVRDmNkVkUk9iHd IMEFCuYCyFL45d7p9+vE48wcBSF8yfhtDnVZ4fTwPWuFG4UsEEOoiRcEIoPVabWVELPu 2ycISeh4jpeCWJRDGz3BFm+yFziMCicaYS+r1uyCjPB5aSLWTN4PF3LeHnNbB09zZcjG FLiQ== X-Gm-Message-State: ALoCoQm9SHeSP24FhzFw0PbQ3L8wcVATr4N8xPCmlXs3s7mHNCGqB3MY14qPdRkIl/XG6IWVmeQx X-Received: by 10.182.33.161 with SMTP id s1mr20371243obi.12.1397471577778; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.135 with SMTP id i7ls2508951qge.7.gmail; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) X-Received: by 10.52.164.237 with SMTP id yt13mr30400447vdb.18.1397471577696; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id v2si2674887vet.142.2014.04.14.03.32.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 03:32:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id im17so7104697vcb.23 for ; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr36398813vcx.1.1397471577594; Mon, 14 Apr 2014 03:32:57 -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.220.221.72 with SMTP id ib8csp136400vcb; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) X-Received: by 10.224.88.131 with SMTP id a3mr18130884qam.54.1397471577182; Mon, 14 Apr 2014 03:32:57 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id j30si6561281qge.58.2014.04.14.03.32.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 03:32:57 -0700 (PDT) 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 1WZeAb-0001EM-64; Mon, 14 Apr 2014 10:31:21 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WZeAZ-0001E2-Kt for xen-devel@lists.xen.org; Mon, 14 Apr 2014 10:31:20 +0000 Received: from [193.109.254.147:37144] by server-6.bemta-14.messagelabs.com id 37/EF-13066-6F8BB435; Mon, 14 Apr 2014 10:31:18 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-9.tower-27.messagelabs.com!1397471477!8160688!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21776 invoked from network); 14 Apr 2014 10:31:18 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 14 Apr 2014 10:31:18 -0000 X-IronPort-AV: E=Sophos;i="4.97,856,1389744000"; d="scan'208";a="119666592" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 14 Apr 2014 10:31:17 +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.3.123.3; Mon, 14 Apr 2014 06:31:16 -0400 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 1WZeAV-0003ru-Ui; Mon, 14 Apr 2014 10:31:16 +0000 From: Ian Campbell To: , Date: Mon, 14 Apr 2014 11:31:15 +0100 Message-ID: <1397471475-19122-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.9.0 MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell Subject: [Xen-devel] [PATCH osstest.git] standalone: force an explicit default config 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.178 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: Some scripts (e.g. cri-args-hostlists) default to production-config instead of the more expected ~/.xen-osstest/config. I keep forgetting this, so set the more appropriate default in the helper script. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- standalone | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/standalone b/standalone index 9f57cad..929fb4f 100755 --- a/standalone +++ b/standalone @@ -59,7 +59,7 @@ TEMP=$(getopt -o c:f:h:rR --long config:,flight:,host:,reuse,noreuse,reinstall,h eval set -- "$TEMP" -config= +config=$HOME/.xen-osstest/config flight="standalone" host= reuse=1 # Don't blow away machines by default @@ -98,6 +98,11 @@ if [ ! -f standalone.db ] ; then exit 1 fi +if [ -z "$config" -o ! -r "$config" ] ; then + echo "Cannot read config." >&2 + exit 1 +fi + need_flight() { if [ -z "$flight" ] ; then echo "run-job: Need a flight" >&2