From d132001f4a72a4e86f86d009dda4ab3da4c8dd4b Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Wed, 15 Jan 2020 21:02:49 -0500 Subject: [PATCH] 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 --- scripts/system-tests/lava2-submit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'])) -- 2.34.1