From: Francis Deslauriers Date: Wed, 15 Jan 2020 19:08:48 +0000 (-0500) Subject: jjb: system-tests: replace remaining `yaml.load()` method X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c2f8bcb90801a37d5e32a1465ebfe85d8d7f66a8;p=lttng-ci.git jjb: system-tests: replace remaining `yaml.load()` method See follow commit for details: commit be7f51b658568ac8d4d83aaf55b6ee381a75e04f Author: Francis Deslauriers Date: Thu Dec 19 23:35:39 2019 -0500 jjb: system-tests: use `yaml.unsafe_load()` method Signed-off-by: Francis Deslauriers --- diff --git a/scripts/system-tests/lava2-submit.py b/scripts/system-tests/lava2-submit.py index 4ff35c2..614a1a9 100644 --- a/scripts/system-tests/lava2-submit.py +++ b/scripts/system-tests/lava2-submit.py @@ -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