Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

fix_cetune_cancel_function #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions benchmarking/mod/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,25 @@ def go(self, testcase, tuning):
self.real_runtime = time.time() - test_start_time
self.after_run()
common.printout("LOG","Collecting Data, this will takes quite long time depends on the network")
self.archive()
if not interrupted_flag:
self.setStatus("Completed")

common.printout("LOG","Post Process Result Data")
try:
analyzer.main(['--path', self.cluster["dest_dir"], 'process_data'])
except:
common.printout("ERROR","analyzer failed, pls try cd analyzer; python analyzer.py --path %s process_data " % self.cluster["dest_dir"])
interrupt_status = ""
dest_dir = self.cluster["dest_dir"]
if os.path.exists("%s/conf/status" % (dest_dir)):
with open("%s/conf/status" % (dest_dir),"r") as f:
interrupt_status=f.read().strip("\n")
if interrupt_status != "Interrupted":
self.archive()
if not interrupted_flag:
self.setStatus("Completed")

common.printout("LOG","Post Process Result Data")
try:
analyzer.main(['--path', self.cluster["dest_dir"], 'process_data'])
except:
common.printout("ERROR","analyzer failed, pls try cd analyzer; python analyzer.py --path %s process_data " % self.cluster["dest_dir"])
else:
self.stop_workload()
self.stop_data_collecters()
common.printout("ERROR","The test has been stopped.")
except:
common.printout("ERROR","The test has been stopped.")

Expand Down