diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-28 08:16:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-28 08:16:51 +0000 |
commit | 8d5649099d51db553c643bbca815ecdd4d5adde7 (patch) | |
tree | bf93af2d8946185a4f089f44184dfbb17d92238e | |
parent | 221a5f6f8d9dcdbf92f1ace10a51adf688d0d2b0 (diff) | |
parent | 402d87543e7da37c85803238f4d73bcd4511da21 (diff) |
Merge "Fix promise test output" into stable/brahmaputra
-rw-r--r-- | testcases/features/promise.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py index f361d8ba6..0dc755b57 100644 --- a/testcases/features/promise.py +++ b/testcases/features/promise.py @@ -181,15 +181,15 @@ def main(): os.environ["OS_TEST_IMAGE"] = image_id os.environ["OS_TEST_FLAVOR"] = flavor_id + os.chdir(PROMISE_REPO) results_file=open('promise-results.json','w+') cmd = 'DEBUG=1 npm run -s test -- --reporter json' start_time_ts = time.time() logger.info("Running command: %s" % cmd) - os.chdir(PROMISE_REPO) ret = subprocess.call(cmd, shell=True, stdout=results_file, \ stderr=subprocess.STDOUT) - + results_file.close() end_time_ts = time.time() duration = round(end_time_ts - start_time_ts, 1) @@ -201,6 +201,7 @@ def main(): test_status = "Failed" # Print output of file + results_file=open('promise-results.json','r') print results_file.read() results_file.close() |