mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-19 09:10:51 +01:00
dhrystone: kill any running instances during setup (also handle CTRL-C).
This commit is contained in:
parent
d5f4457701
commit
9e12930a43
@ -76,9 +76,14 @@ class Dhrystone(Workload):
|
|||||||
execution_mode,
|
execution_mode,
|
||||||
self.threads, self.delay)
|
self.threads, self.delay)
|
||||||
self.timeout = self.duration and self.duration + self.delay * self.threads + 10 or 300
|
self.timeout = self.duration and self.duration + self.delay * self.threads + 10 or 300
|
||||||
|
self.device.killall('dhrystone')
|
||||||
|
|
||||||
def run(self, context):
|
def run(self, context):
|
||||||
self.output = self.device.execute(self.command, timeout=self.timeout, check_exit_code=False)
|
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):
|
def update_result(self, context):
|
||||||
outfile = os.path.join(context.output_directory, 'dhrystone.output')
|
outfile = os.path.join(context.output_directory, 'dhrystone.output')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user