1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

dhrystone: kill any running instances during setup (also handle CTRL-C).

This commit is contained in:
Sergei Trofimov 2015-09-08 17:42:18 +01:00
parent d5f4457701
commit 9e12930a43

View File

@ -76,9 +76,14 @@ class Dhrystone(Workload):
execution_mode,
self.threads, self.delay)
self.timeout = self.duration and self.duration + self.delay * self.threads + 10 or 300
self.device.killall('dhrystone')
def run(self, context):
try:
self.output = self.device.execute(self.command, timeout=self.timeout, check_exit_code=False)
except KeyboardInterrupt:
self.device.killall('dhrystone')
raise
def update_result(self, context):
outfile = os.path.join(context.output_directory, 'dhrystone.output')