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 <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
eval set -- "$TEMP"
-config=
+config=$HOME/.xen-osstest/config
flight="standalone"
host=
reuse=1 # Don't blow away machines by default
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