summaryrefslogtreecommitdiffstats
path: root/utils/functest_utils.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2016-10-12 17:25:21 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2016-10-12 17:28:07 +0200
commit6aa929cd8c8a9116c8df23bc0bf4cc76516425e6 (patch)
tree9f08736ad1e011aace3863818f6f4f093330244a /utils/functest_utils.py
parentab3b723d2cc6c16b11c3a17b091da384213bcaac (diff)
Remove exit() in ft_utils.execute_command
It simply removes the exit call in ft_utils.execute_command which is quite safe as every testcase sets exit_on_error to False JIRA: FUNCTEST-438 Change-Id: Ia273de0955cc3ea65a150c626638400ce614da00 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'utils/functest_utils.py')
-rw-r--r--utils/functest_utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/functest_utils.py b/utils/functest_utils.py
index 717e4b2ce..ef865bedf 100644
--- a/utils/functest_utils.py
+++ b/utils/functest_utils.py
@@ -289,7 +289,7 @@ def get_ci_envvars():
return ci_env_var
-def execute_command(cmd, exit_on_error=True, info=False, error_msg="",
+def execute_command(cmd, info=False, error_msg="",
verbose=True, output_file=None):
if not error_msg:
error_msg = ("The command '%s' failed." % cmd)
@@ -317,8 +317,6 @@ def execute_command(cmd, exit_on_error=True, info=False, error_msg="",
if returncode != 0:
if verbose:
logger.error(error_msg)
- if exit_on_error:
- sys.exit(1)
return returncode