diff --git a/run.sh b/run.sh index 92f380df28b944decc4d0f253918feee587e873c..99266cd9e13ce68a2f9e39a6be1a02fd0dc662d5 100644 --- a/run.sh +++ b/run.sh @@ -26,8 +26,7 @@ function init() { if [ ! -d ${tools_path} ]; then mkdir ${tools_path} fi - file1="$base_dir/all_json_file.json" - if [ -f $file1 ];then + if [ -f "$base_dir/all_json_file.json-bak" ];then file2="$base_dir/all_json_file-"`date +"%Y%m%d%H%M%S"`".json" mv $base_dir/all_json_file.json-bak $file2 fi @@ -265,7 +264,7 @@ function main() { run "$rk_benchmark" if [ $? -eq 0 ] && [ $UPLOAD="true" ] ;then sed -i 's/NR\/RE//g' $base_dir/all_json_file.json - python3 ./send.py $base_dir/all_json_file.json + python3 ./send.py fi else parse_cmd $@ diff --git a/src/kytuning/report.py b/src/kytuning/report.py index a2924d3dbb3f5e7eafb6ea4d2e16faba2835f1b7..582e9768f26100f426c2c575e9671654b617f296 100644 --- a/src/kytuning/report.py +++ b/src/kytuning/report.py @@ -305,8 +305,8 @@ class Report(object): :param env_data:初始环境信息数据 :return all_json_file.json文件路径 """ - # import pdb; - # pdb.set_trace() + time_stamp = time.time() + env_data = env_data[:-1]+',"time":'+str(time_stamp) + '}' all_json_file = os.path.abspath(os.path.join(self.basepath, "../../", "all_json_file.json")) if not os.path.exists(all_json_file): with open(all_json_file, 'w+', encoding='utf-8') as f: