jjb: system-tests: replace remaining `yaml.load()` method
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 15 Jan 2020 19:08:48 +0000 (14:08 -0500)
committerJonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Wed, 15 Jan 2020 19:12:23 +0000 (14:12 -0500)
See follow commit for details:
  commit be7f51b658568ac8d4d83aaf55b6ee381a75e04f
  Author: Francis Deslauriers <francis.deslauriers@efficios.com>
  Date:   Thu Dec 19 23:35:39 2019 -0500

      jjb: system-tests: use `yaml.unsafe_load()` method

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/system-tests/lava2-submit.py

index 4ff35c22eaa6316c2ae864ee0cf33b80cdfe777d..614a1a973b301748f6d89a9247f7435faad304a4 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
This page took 0.023789 seconds and 4 git commands to generate.