[Promise] Fix bug opening the json result file
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 6 Sep 2016 12:22:26 +0000 (14:22 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 6 Sep 2016 12:22:26 +0000 (14:22 +0200)
Change-Id: I8882ffc8139095a79b6542c508a6293ae231f232
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
testcases/features/promise.py

index a7899fe..5b23614 100755 (executable)
@@ -182,8 +182,8 @@ def main():
     os.environ["OS_TEST_NETWORK"] = network_dic["net_id"]
 
     os.chdir(PROMISE_REPO)
-    results_file_name = 'promise-results.json'
-    results_file = open(RESULTS_DIR + '/' + results_file_name, 'w+')
+    results_file_name = RESULTS_DIR + '/' + 'promise-results.json'
+    results_file = open(results_file_name, 'w+')
     cmd = 'npm run -s test -- --reporter json'
 
     logger.info("Running command: %s" % cmd)