diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-15 15:37:28 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-15 15:37:28 +0100 |
commit | 973c722f929eb3652d19a15911404f31a9f66216 (patch) | |
tree | c34e9220c9575b359503841afda6417097b12da8 /testcases/config_functest.py | |
parent | 4958e8f990668c893b3c825222dbd00a293ebd02 (diff) |
Remove extra output if CI_DEBUG is false
This way we have a nicer view in Jenkins when
preparing Functest
Change-Id: Ie0df3aa8b07ac2fd726d11b1ab01a7291d4c2c5e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/config_functest.py')
-rwxr-xr-x | testcases/config_functest.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/testcases/config_functest.py b/testcases/config_functest.py index 11682580..199fadfd 100755 --- a/testcases/config_functest.py +++ b/testcases/config_functest.py @@ -125,7 +125,10 @@ def action_start(): script += 'bundle install' cmd = "/bin/bash -c '" + script + "'" - functest_utils.execute_command(cmd,logger) + if os.environ.get("CI_DEBUG") == "false": + functest_utils.execute_command(cmd) + else: + functest_utils.execute_command(cmd,logger) # Create result folder under functest if necessary if not os.path.exists(RALLY_RESULT_DIR): @@ -208,7 +211,7 @@ def action_clean(): logger.debug("Cleaning up the OpenStack deployment...") cmd='python ' + REPO_PATH + \ - '/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py -d ' + '/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py' functest_utils.execute_command(cmd,logger) logger.info("Functest environment clean!") @@ -221,7 +224,10 @@ def install_rally(): logger.debug("Executing %s/install_rally.sh..." %RALLY_REPO_DIR) install_script = RALLY_REPO_DIR + "/install_rally.sh --yes" cmd = 'sudo ' + install_script - functest_utils.execute_command(cmd,logger) + if os.environ.get("CI_DEBUG") == "false": + functest_utils.execute_command(cmd) + else: + functest_utils.execute_command(cmd,logger) logger.debug("Creating Rally environment...") cmd = "rally deployment create --fromenv --name="+DEPLOYMENT_MAME |