Fix command in prepare env to execute check_os.sh 01/36301/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 21 Jun 2017 12:55:01 +0000 (14:55 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Wed, 21 Jun 2017 13:04:36 +0000 (15:04 +0200)
[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>
functest/ci/prepare_env.py

index fd1f5db..5326c50 100755 (executable)
@@ -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)