1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

power_loadtest: kill any already-running autotest instances during setup

This commit is contained in:
Sergei Trofimov
2015-05-12 14:27:04 +01:00
parent cbd2c6727f
commit 57d3b80e85

View File

@@ -76,6 +76,8 @@ class PowerLoadtest(Workload):
raise WorkloadError(message.format(self.name)) raise WorkloadError(message.format(self.name))
self.command = self._build_command() self.command = self._build_command()
self.raw_output = None self.raw_output = None
# make sure no other test is running
self.device.execute('killall -9 autotest', check_exit_code=False)
def run(self, context): def run(self, context):
self.logger.debug(self.command) self.logger.debug(self.command)