=== modified file 'lava_dispatcher/actions/lava_test_shell.py'
@@ -244,7 +244,7 @@
testdef_file = download_image(url, self.context, tmpdir)
with open(testdef_file, 'r') as f:
logging.info('loading test definition')
- testdef = yaml.load(f)
+ testdef = yaml.safe_load(f)
idx = len(self.testdefs)
@@ -270,7 +270,7 @@
test = testdef_repo.get('testdef', 'lavatest.yaml')
with open(os.path.join(repo, test), 'r') as f:
logging.info('loading test definition ...')
- testdef = yaml.load(f)
+ testdef = yaml.safe_load(f)
idx = len(self.testdefs)
self._append_testdef(
=== modified file 'lava_dispatcher/lava_test_shell.py'
@@ -295,8 +295,8 @@
# XXX testdef_metadata = _read_content(os.path.join(test_run_dir,
# XXX 'testdef_metadata'))
- testdef = yaml.load(testdef)
- # XXX testdef_metadata = yaml.load(testdef_metadata)
+ testdef = yaml.safe_load(testdef)
+ # XXX testdef_metadata = yaml.safe_load(testdef_metadata)
if uuid in testdefs_by_uuid:
sw_sources = testdefs_by_uuid[uuid]._sw_sources
else: