Check if the job passed and if not (so status is fail, broken, running
etc) then return an error.
This is convenient for scripting.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
OSSTEST_HOST_REUSE=$reuse \
OSSTEST_SIMULATE=$dryrun \
with_logging logs/$flight/$job.log ./sg-run-job $job
+
+ status=`job_status $flight $job`
+ echo "$flight.$job status = $status" >&2
+ if [ "x$status" != xpass ] ; then exit 1; fi
+
;;
run-test)
need_flight; need_host