From: Ian Campbell Date: Fri, 25 Sep 2015 13:32:25 +0000 (+0100) Subject: standalone: Check job status at end of run-job. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b863dcd14ba4abdabf3eac8ac26727aaf1708cdd;p=people%2Fliuw%2Fosstest.git standalone: Check job status at end of run-job. 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 Acked-by: Ian Jackson --- diff --git a/standalone b/standalone index 98a323f..7c7fde9 100755 --- a/standalone +++ b/standalone @@ -300,6 +300,11 @@ case $op in 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