From 4d669670f13e5ab4394a2c9e38073bf7281555ae Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 21 Jun 2017 14:55:01 +0200 Subject: Fix command in prepare env to execute check_os.sh [1] introduced a bug when adding "sh" to the call. There is no need to use sh or bash in the command string. [1]: https://gerrit.opnfv.org/gerrit/#/c/36163/ Change-Id: I9ce443721b69945a4a749da0caa6c008cc8ca284 Signed-off-by: jose.lausuch --- functest/ci/prepare_env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functest/ci/prepare_env.py b/functest/ci/prepare_env.py index fd1f5dbf..5326c50b 100755 --- a/functest/ci/prepare_env.py +++ b/functest/ci/prepare_env.py @@ -251,8 +251,8 @@ def update_db_url(): def verify_deployment(): print_separator() logger.info("Verifying OpenStack services...") - cmd = ("sh %s" % pkg_resources.resource_filename( - 'functest', 'ci/check_os.sh')) + cmd = ("%s" % pkg_resources.resource_filename( + 'functest', 'ci/check_os.sh')) logger.debug("Executing command: %s" % cmd) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) -- cgit 1.2.3-korg