From: Pavel Dovgalyuk Date: Fri, 11 Aug 2023 07:06:08 +0000 (+0300) Subject: tests/avocado: fix waiting for vm shutdown in replay_linux X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b821109583a035a17fa5b89c0ebd8917d09cc82d;p=qemu.git 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 Suggested-by: John Snow Message-ID: <20230811070608.3383343-4-pavel.dovgalyuk@ispras.ru> Signed-off-by: Thomas Huth --- 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)