jjb: system-tests: print all tests results
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 16 Jan 2020 02:02:49 +0000 (21:02 -0500)
committerJonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Thu, 16 Jan 2020 23:05:20 +0000 (18:05 -0500)
In the vm_tests_* lava jobs, there are currently 2 sub-tests that we
care about: "1_kernel-tests" and "2_destructive-tests".

At the moment, we print from the first '<LAVA_SIGNAL_STARTTC run-tests>'
to the first '<LAVA_SIGNAL_ENDTC run-tests>' we encounter.

This is wrong because there are 2 sub-tests, we are currently only print
the result of the first one.

To fix this,  don't break from the loop and keep on reading the file in
case there are other test results.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/system-tests/lava2-submit.py

index 614a1a973b301748f6d89a9247f7435faad304a4..9ce47318008f1bac26ce7282f5b94f70d954401b 100644 (file)
@@ -125,7 +125,8 @@ def print_test_output(server, job):
             continue
         if line['msg'] == '<LAVA_SIGNAL_ENDTC run-tests>':
             print('----- TEST SUITE OUTPUT END -----')
-            break
+            print_line = False
+            continue
         if print_line:
             print("{} {}".format(line['dt'], line['msg']))
 
This page took 0.023654 seconds and 4 git commands to generate.