aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>2023-08-11 10:06:08 +0300
committerThomas Huth <thuth@redhat.com>2023-09-25 08:02:23 +0200
commitb821109583a035a17fa5b89c0ebd8917d09cc82d (patch)
tree0ef2643c111225e284e173ce479ead95f30af516
parentc9daa685cb69dddfe8082f09fd26728e98a66102 (diff)
tests/avocado: fix waiting for vm shutdown in replay_linux
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>
-rw-r--r--tests/avocado/replay_linux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/avocado/replay_linux.py b/tests/avocado/replay_linux.py
index a76dd507fc..270ccc1eae 100644
--- a/tests/avocado/replay_linux.py
+++ b/tests/avocado/replay_linux.py
@@ -93,7 +93,7 @@ class ReplayLinux(LinuxTest):
% 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)