From 25f44c68ad1ed1eeffc37670d0f8a43a1684c9cb Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 22 May 2015 10:29:18 +0100 Subject: [PATCH] standalone: Prefer ./local-config to $HOME/.xen-osstest/config OSSTEST_CONFIG still trumps both. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: local-config not standalone.config --- standalone | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/standalone b/standalone index b5c97c8..e9a74c1 100755 --- a/standalone +++ b/standalone @@ -68,7 +68,13 @@ TEMP=$(getopt -o c:f:h:rRs --long config:,flight:,host:,reuse,noreuse,reinstall, eval set -- "$TEMP" -config=${OSSTEST_CONFIG-$HOME/.xen-osstest/config} +if [ -n "${OSSTEST_CONFIG}" ]; then + config=${OSSTEST_CONFIG} +elif [ -f local-config ]; then + config=local-config +else + config=$HOME/.xen-osstest/config +fi flight="standalone" host= reuse=1 # Don't blow away machines by default -- 2.39.5