summaryrefslogtreecommitdiffstats
path: root/testcases/config_functest.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-25 10:01:34 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-25 10:01:34 +0000
commit71e688eee322a1d6a697d4328783eff5254918d0 (patch)
tree4572c8e471a4175b422723d49fde9e0ea373eaf7 /testcases/config_functest.py
parente21c11998ea4b412863e09021e3266a98cc55b08 (diff)
parent76b49b8c1eefcebe69d798157cb7742152a57155 (diff)
Merge "Add support for Promise test cases"
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):