[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/tests/test_glance.py b/test_set/cvp-spt/tests/test_glance.py
index 5514944..87d6e4a 100644
--- a/test_set/cvp-spt/tests/test_glance.py
+++ b/test_set/cvp-spt/tests/test_glance.py
@@ -24,11 +24,11 @@
create_file_cmdline = 'dd if=/dev/zero of=/tmp/image_mk_framework.dd bs=1M count={image_size}'.format(
image_size=image_size_megabytes)
- is_cmd_successful = subprocess.call(create_file_cmdline.split()) == 0
+ is_cmd_successful = subprocess.call(create_file_cmdline, shell=True) == 0
yield is_cmd_successful
# teardown
- subprocess.call('rm -f /tmp/image_mk_framework.dd'.split())
- subprocess.call('rm -f /tmp/image_mk_framework.download'.split())
+ subprocess.call('rm -f /tmp/image_mk_framework.dd', shell=True)
+ subprocess.call('rm -f /tmp/image_mk_framework.download', shell=True)
def test_speed_glance(create_image, openstack_clients, record_property):