From 71d715b04b2ded20f81bd5c5083fcb2fbce06c1f Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Sat, 5 Nov 2016 16:12:00 +0800 Subject: 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 --- scripts/ref_results/suite_result.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/ref_results') 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 -- cgit 1.2.3-korg