From 76be7f7c6b2921aad6a68504a2020fb032eb5fde Mon Sep 17 00:00:00 2001 From: Leo Wang Date: Wed, 21 Dec 2016 02:34:44 -0500 Subject: [dovetail tool]check and get results for each cmd JIRA: DOVETAIL-166 Check the results of each cmds executed in test case 1. the results of pre_condition, post_condition, cmds need to be checked, so it can get a quick fail, dont need to go through the next step 2. it's more accurate to show where error occurred as early as possible 3. get results from shell scripts Change-Id: I5c1e59839c55b92de0e83e7e1eb552aa364b3f80 Signed-off-by: Leo Wang --- dovetail/utils/dovetail_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dovetail/utils/dovetail_utils.py') diff --git a/dovetail/utils/dovetail_utils.py b/dovetail/utils/dovetail_utils.py index 1c68b7f3..8c4865d8 100644 --- a/dovetail/utils/dovetail_utils.py +++ b/dovetail/utils/dovetail_utils.py @@ -34,7 +34,7 @@ def exec_log(verbose, logger, msg, level, flush=False): sys.stdout.flush() -def exec_cmd(cmd, logger=None, exit_on_error=True, info=False, +def exec_cmd(cmd, logger=None, exit_on_error=False, info=False, err_msg="", verbose=True): msg_err = ("The command '%s' failed." % cmd) if not err_msg else err_msg msg_exec = ("Executing command: '%s'" % cmd) -- cgit 1.2.3-korg