]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/avocado: fix waiting for vm shutdown in replay_linux
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Fri, 11 Aug 2023 07:06:08 +0000 (10:06 +0300)
committerThomas Huth <thuth@redhat.com>
Mon, 25 Sep 2023 06:02:23 +0000 (08:02 +0200)
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>
tests/avocado/replay_linux.py

index a76dd507fc1c808c5953afbca12140e6ae4c93a7..270ccc1eae81340ff9b539f1fc6f713eac263f88 100644 (file)
@@ -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)