| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST 2/3] 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 <ian.campbell@xxxxxxxxxx>
---
 standalone | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/standalone b/standalone
index 0a5d96f..e85457d 100755
--- a/standalone
+++ b/standalone
@@ -299,6 +299,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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |