aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-06-21 14:55:01 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2017-06-21 15:04:36 +0200
commit4d669670f13e5ab4394a2c9e38073bf7281555ae (patch)
tree689a16d78e0245d220b626f001de27568bcc35e4
parent28d74e22e5e7a252996c1e0cb29ccb21a97fdeb0 (diff)
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 <jose.lausuch@ericsson.com>
-rwxr-xr-xfunctest/ci/prepare_env.py4
1 files 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)