aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/test/test_test_shell.py
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-09-28 11:09:48 +0100
committerRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-10-01 06:33:56 +0000
commit146e143d4a98aede60c68e975d37ec05f6947c29 (patch)
tree97c6e25e87cd80ac718d8a161f8b3a561e6d1807 /lava_dispatcher/test/test_test_shell.py
parent01a3b0c0b6fc00fb67525fed814b4e8a6d6fb83d (diff)
Apply yaml.safe_load to unit tests
Ensure unit tests are testing the same behaviour as the rest of the source code and also reduce the amount of noise in the SAST report so that genuine issues are easier to find. Signed-off-by: Neil Williams <neil.williams@linaro.org>
Diffstat (limited to 'lava_dispatcher/test/test_test_shell.py')
-rw-r--r--lava_dispatcher/test/test_test_shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lava_dispatcher/test/test_test_shell.py b/lava_dispatcher/test/test_test_shell.py
index 472a69dd0..95b138b80 100644
--- a/lava_dispatcher/test/test_test_shell.py
+++ b/lava_dispatcher/test/test_test_shell.py
@@ -52,7 +52,7 @@ class TestPatterns(StdoutTestCase):
self.assertEqual([], self.job.pipeline.errors)
self.assertTrue(os.path.exists(self.testdef))
with open(self.testdef, 'r') as par:
- params = yaml.load(par)
+ params = yaml.safe_load(par)
self.assertIn('parse', params.keys())
line = 'test1a: pass'