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

utils/revent: stop recording fix.

It seems that occasionally an inclomplete recording file is pulled. Add
a one-second (target time) delay to allow SIGINT to be properly handled
and recording to be updated, followed by a sync to ensure the file has
been written.
This commit is contained in:
Sergei Trofimov 2017-09-25 11:38:01 +01:00
parent c29b1c8b23
commit 9b6d4d9fa6

View File

@ -281,6 +281,8 @@ class ReventRecorder(object):
def stop_record(self):
self.target.killall('revent', signal.SIGINT, as_root=self.target.is_rooted)
self.target.sleep(1)
self.target.execute('sync')
def replay(self, revent_file, timeout=None):
self.target.killall('revent')