jjb/lava: Correct YAML loading for lava job results
authorKienan Stewart <kstewart@efficios.com>
Thu, 11 Jan 2024 20:10:03 +0000 (15:10 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 12 Jan 2024 18:56:10 +0000 (13:56 -0500)
Change-Id: I7d2a7d4eeb0192c4ac1b83547683fc02589ccc76
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/system-tests/lava2-submit.py

index 5a08abd683236caf2dca1f94f6787abdd8bb2e3c..dfd7ad4daa11b895deaf09ed6b0095df246e11a1 100644 (file)
@@ -83,7 +83,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.load(content, Loader=yaml.Loader)
 
     passed_tests = 0
     failed_tests = 0
@@ -105,7 +105,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.load(log.data.decode('ascii'), Loader=yaml.Loader)
     print_line = False
     for line in logs:
         if line['lvl'] != 'target':
This page took 0.023726 seconds and 4 git commands to generate.