Lava: Print job test cases summary at the very end
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 28 Nov 2016 21:17:41 +0000 (16:17 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 1 Dec 2016 21:38:30 +0000 (16:38 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/lava-submit.py

index e528f9dec4df0d197c8d804d0d1373eddbad2411..ad64e78bc48cdb3f47cc117f668cb8dac4a35c3a 100644 (file)
@@ -332,17 +332,17 @@ def main():
         time.sleep(30)
         jobstatus = server.scheduler.job_status(jobid)['job_status']
 
-    print('Job ended with {} status.'.format(jobstatus))
-    if jobstatus not in 'Complete':
-        return -1
-
     passed, failed=check_job_all_test_cases_state_count(server, jobid)
 
-    print('With {} passed and {} failed Lava test cases.'.format(passed, failed))
-
     if test_type is TestType.tests:
         print_test_output(server, jobid)
 
+    print('Job ended with {} status.'.format(jobstatus))
+    if jobstatus not in 'Complete':
+        return -1
+    else:
+        print('With {} passed and {} failed Lava test cases.'.format(passed, failed))
+
     if failed == 0:
         return 0
     else:
This page took 0.023657 seconds and 4 git commands to generate.