[cvp-spt] Allow to redefine flavor parameters from environment variables
Additional changes:
* remake calling 'image_name' variable for more pythonic way
* subprocess.call calls with shell=True when creating the image
* fix the deprecation message from yaml.load
Change-Id: Ic057f7b0364eed2ab0693569b1330e8066def757
Related-Prod:#PROD-26971(PROD:26971)
diff --git a/test_set/cvp-spt/utils/__init__.py b/test_set/cvp-spt/utils/__init__.py
index 36cf239..a3bd6c2 100644
--- a/test_set/cvp-spt/utils/__init__.py
+++ b/test_set/cvp-spt/utils/__init__.py
@@ -98,7 +98,7 @@
global_config_file = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "../global_config.yaml")
with open(global_config_file, 'r') as file:
- global_config = yaml.load(file)
+ global_config = yaml.load(file, Loader=yaml.SafeLoader)
for param in global_config.keys():
if param in os.environ.keys():
if ',' in os.environ[param]: