From: Francis Deslauriers Date: Thu, 16 Jan 2020 02:02:49 +0000 (-0500) Subject: jjb: system-tests: print all tests results X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=d132001f4a72a4e86f86d009dda4ab3da4c8dd4b;hp=9e5757c625d6f13e7d9e55ad62f1c39bdc1a5ed9;p=lttng-ci.git jjb: system-tests: print all tests results 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 '' to the first '' 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 --- diff --git a/scripts/system-tests/lava2-submit.py b/scripts/system-tests/lava2-submit.py index 614a1a9..9ce4731 100644 --- a/scripts/system-tests/lava2-submit.py +++ b/scripts/system-tests/lava2-submit.py @@ -125,7 +125,8 @@ def print_test_output(server, job): continue if line['msg'] == '': print('----- TEST SUITE OUTPUT END -----') - break + print_line = False + continue if print_line: print("{} {}".format(line['dt'], line['msg']))