Lava: Print jobid at submission and test cases report at the end
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 17 Nov 2016 22:07:52 +0000 (17:07 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 23 Nov 2016 17:25:31 +0000 (12:25 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/lava-submit.py

index 52bc4d7be5b3f4de7a1b2bdb3b7b348ec6e03b68..7eeb36707469a0eed10f2136aa8a5b63f42ba425 100644 (file)
@@ -320,6 +320,8 @@ def main():
 
     jobid = server.scheduler.submit_job(json.dumps(j))
 
+    print('Lava jobid:{}'.format(jobid))
+
     #Check the status of the job every 30 seconds
     jobstatus = server.scheduler.job_status(jobid)['job_status']
     while jobstatus in 'Submitted' or jobstatus in 'Running':
@@ -332,12 +334,12 @@ def main():
 
     passed, failed=check_job_all_test_cases_state_count(server, jobid)
 
-    print('With {} passed tests and {} failed tests.'.format(passed, failed))
+    print('With {} passed and {} failed Lava test cases.'.format(passed, failed))
 
     if test_type is TestType.tests:
         print_test_output(server, jobid)
 
-    if  failed == 0:
+    if failed == 0:
         return 0
     else:
         return -1
This page took 0.02551 seconds and 4 git commands to generate.