]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
standalone: Prefer ./local-config to $HOME/.xen-osstest/config
authorIan Campbell <ian.campbell@citrix.com>
Fri, 22 May 2015 09:29:18 +0000 (10:29 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 26 Jun 2015 15:39:04 +0000 (16:39 +0100)
OSSTEST_CONFIG still trumps both.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v3: local-config not standalone.config

standalone

index b5c97c8913555b27c9c46d68527980086d1b7ec2..e9a74c1dc6c109d245d9a9ca71e3a44ccc727fed 100755 (executable)
@@ -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