aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-05 16:12:00 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-05 17:11:12 +0800
commit71d715b04b2ded20f81bd5c5083fcb2fbce06c1f (patch)
treedfedee9d75f5fdc88aecb096408f806a09b4e4bb /scripts
parent1ebddd16525c9f82540b8cbfb76685acf1d1b218 (diff)
Remove results directory out of repos
Delete results directory from qtip repos. And the results files will be stored under /home/opnfv/qtip/results. Change-Id: Ie1091e60eb77068c20a9095f0f85454f18173872 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'scripts')
-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