From: Ian Campbell Subject: [PATCH osstest.git] standalone: force an explicit default config Date: Mon, 14 Apr 2014 11:31:15 +0100 Message-ID: <1397471475-19122-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- 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 -- 1.9.0