aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ref_results
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-07 07:39:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-07 07:39:09 +0000
commitc7761e0760aaacb801478308b6774dccb33cbf2e (patch)
treed6f0580e0713780e5bfbc26314ccbd70ec9c3454 /scripts/ref_results
parent962e1283835838a127767087a09b946327bd23a6 (diff)
parent71d715b04b2ded20f81bd5c5083fcb2fbce06c1f (diff)
Merge "Remove results directory out of repos"
Diffstat (limited to 'scripts/ref_results')
-rw-r--r--scripts/ref_results/suite_result.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ref_results/suite_result.py b/scripts/ref_results/suite_result.py
index 4d9eae08..217181f9 100644
--- a/scripts/ref_results/suite_result.py
+++ b/scripts/ref_results/suite_result.py
@@ -10,6 +10,7 @@ import json
import importlib
import sys
from utils import logger_utils
+from os.path import expanduser
logger = logger_utils.QtipLogger('suite_result').get
@@ -43,7 +44,8 @@ def get_suite_result(suite_name):
suite_index = temp / l
suite_dict_f = {'index': suite_index,
'suite_results': suite_dict}
- with open('results/{0}_result.json'.format(suite_name), 'w+') as result_json:
+ result_path = expanduser('~') + '/qtip/results'
+ with open('{0}/{1}_result.json'.format(result_path, suite_name), 'w+') as result_json:
json.dump(suite_dict_f, result_json, indent=4, sort_keys=True)
return True