diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-21 13:58:48 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-25 10:01:44 +0000 |
commit | 621e47bb25db52e0b8cebb4f2bbee3911c6992d3 (patch) | |
tree | 4572c8e471a4175b422723d49fde9e0ea373eaf7 /testcases/config_functest.py | |
parent | 3e3d42ea84e057234021d02e0987bc6278a00cc5 (diff) |
Add support for Promise test cases
JIRA: FUNCTEST-68
Change-Id: I80f8e587e53c7242f8bfa666f2ac450e73c8294f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 76b49b8c1eefcebe69d798157cb7742152a57155)
Diffstat (limited to 'testcases/config_functest.py')
-rwxr-xr-x | testcases/config_functest.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/testcases/config_functest.py b/testcases/config_functest.py index 70a7d6cd6..12ae647f9 100755 --- a/testcases/config_functest.py +++ b/testcases/config_functest.py @@ -124,11 +124,21 @@ def action_start(): script += 'rvm use 1.9.3;' script += 'bundle install' + logger_debug = None + CI_DEBUG = os.environ.get("CI_DEBUG") + if CI_DEBUG == "true" or CI_DEBUG == "True": + logger_debug = logger + cmd = "/bin/bash -c '" + script + "'" - if os.environ.get("CI_DEBUG") == "false": - functest_utils.execute_command(cmd) - else: - functest_utils.execute_command(cmd,logger) + functest_utils.execute_command(cmd, logger = logger_debug, exit_on_error=False) + + + logger.info("Installing dependencies for Promise testcase...") + cmd = 'npm install -g yangforge' + functest_utils.execute_command(cmd,logger = logger_debug, exit_on_error=False) + + cmd = 'npm install' + functest_utils.execute_command(cmd,logger = logger_debug, exit_on_error=False) # Create result folder under functest if necessary if not os.path.exists(RALLY_RESULT_DIR): |