Skip to content

Commit

Permalink
tests/avocado: fix waiting for vm shutdown in replay_linux
Browse files Browse the repository at this point in the history
This patch fixes the race condition in waiting for shutdown
of the replay linux test.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Suggested-by: John Snow <jsnow@redhat.com>
Message-ID: <20230811070608.3383343-4-pavel.dovgalyuk@ispras.ru>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
Dovgalyuk authored and huth committed Sep 25, 2023
1 parent c9daa68 commit b821109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/avocado/replay_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def launch_and_wait(self, record, args, shift):
% os.path.getsize(replay_path))
else:
vm.event_wait('SHUTDOWN', self.timeout)
vm.shutdown(True)
vm.wait()
logger.info('successfully fihished the replay')
elapsed = time.time() - start_time
logger.info('elapsed time %.2f sec' % elapsed)
Expand Down

0 comments on commit b821109

Please sign in to comment.