Remove extra "/" in fetched url
[lttng-ci.git] / scripts / system-tests / lava2-submit.py
index a72aee75d978bb31366d12d1587c242e6bc7d944..9ce47318008f1bac26ce7282f5b94f70d954401b 100644 (file)
@@ -72,7 +72,7 @@ def check_job_all_test_cases_state_count(server, job):
     """
     print("Testcase result:")
     content = server.results.get_testjob_results_yaml(str(job))
-    testcases = yaml.load(content)
+    testcases = yaml.unsafe_load(content)
 
     passed_tests = 0
     failed_tests = 0
@@ -114,7 +114,7 @@ def print_test_output(server, job):
     Parse the attachment of the testcase to fetch the stdout of the test suite
     """
     job_finished, log = server.scheduler.jobs.logs(str(job))
-    logs = yaml.load(log.data.decode('ascii'))
+    logs = yaml.unsafe_load(log.data.decode('ascii'))
     print_line = False
     for line in logs:
         if line['lvl'] != 'target':
@@ -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.022755 seconds and 4 git commands to generate.