aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/config_functest.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-01-21 13:58:48 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2016-01-22 11:25:12 +0100
commit76b49b8c1eefcebe69d798157cb7742152a57155 (patch)
tree44f2827b10e9fb1dba28e20a330d58635f5060f2 /testcases/config_functest.py
parent2520c3221bdbb5ca75ad0c2d70f30388528d01de (diff)
Add support for Promise test cases
JIRA: FUNCTEST-68 Change-Id: I80f8e587e53c7242f8bfa666f2ac450e73c8294f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/config_functest.py')
-rwxr-xr-xtestcases/config_functest.py18
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):