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.campb...@citrix.com>
Acked-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 standalone | 5 +++++
 1 file changed, 5 insertions(+)

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
-- 
2.5.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to