From 0925daced02fd7555d43cd96e5b944d0f8edb748 Mon Sep 17 00:00:00 2001 From: Juha Kosonen Date: Fri, 2 Feb 2018 13:27:33 +0200 Subject: Do not use shell to execute commands in tempest Change-Id: I4d699481fdc63058c12ca9cfe18138e87025e9b3 Signed-off-by: Juha Kosonen --- functest/tests/unit/openstack/tempest/test_tempest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'functest/tests/unit') diff --git a/functest/tests/unit/openstack/tempest/test_tempest.py b/functest/tests/unit/openstack/tempest/test_tempest.py index 292eb75b..37b61f3b 100644 --- a/functest/tests/unit/openstack/tempest/test_tempest.py +++ b/functest/tests/unit/openstack/tempest/test_tempest.py @@ -145,12 +145,11 @@ class OSTempestTesting(unittest.TestCase): mock.patch('functest.opnfv_tests.openstack.tempest.tempest.' 'subprocess.Popen'): conf_utils.TEMPEST_LIST = 'test_tempest_list' - cmd_line = ("rally verify start --load-list " - "test_tempest_list --detailed") + cmd = ["rally", "verify", "start", "--load-list", + conf_utils.TEMPEST_LIST] self.tempestcommon.run_verifier_tests() mock_logger_info. \ - assert_any_call("Starting Tempest test suite: '%s'." - % cmd_line) + assert_any_call("Starting Tempest test suite: '%s'." % cmd) @mock.patch('functest.opnfv_tests.openstack.tempest.tempest.' 'os.path.exists', return_value=False) -- cgit 1.2.3-korg