The version of LAVA we are using was updated last year, and includes
fixes for supporting safe YAML.
C.f. https://gitlab.com/lava/lava/-/commit/
c0da3495c11936d761de4e03d709041f2f9a1d3e
Fixes Support #754
Change-Id: I34afafa5643fa45059077468536239e4b48d15ac
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
"""
print("Testcase result:")
content = server.results.get_testjob_results_yaml(str(job))
- testcases = yaml.unsafe_load(content)
+ testcases = yaml.load(content)
passed_tests = 0
failed_tests = 0
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.unsafe_load(log.data.decode('ascii'))
+ logs = yaml.load(log.data.decode('ascii'))
print_line = False
for line in logs:
if line['lvl'] != 'target':