aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2021-09-02 11:40:16 +0200
committerHanna Reitz <hreitz@redhat.com>2021-09-15 15:54:07 +0200
commitb90d7a18b615be1e521ee5bf99c816a45099a29b (patch)
tree5b742dbf7fd65286feb7f8283ee65573e34fea64 /tests/qemu-iotests
parentd8c2e47dbe998d00dcfe0ca5fc0766a98b69a591 (diff)
downloadqemu-b90d7a18b615be1e521ee5bf99c816a45099a29b.zip
qemu-b90d7a18b615be1e521ee5bf99c816a45099a29b.tar.gz
qemu-b90d7a18b615be1e521ee5bf99c816a45099a29b.tar.bz2
mirror-top-perms: Fix AbnormalShutdown path
The AbnormalShutdown exception class is not in qemu.machine, but in qemu.machine.machine. (qemu.machine.AbnormalShutdown was enough for Python to find it in order to run this test, but pylint complains about it.) Signed-off-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20210902094017.32902-5-hreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'tests/qemu-iotests')
-rwxr-xr-xtests/qemu-iotests/tests/mirror-top-perms2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/tests/mirror-top-perms b/tests/qemu-iotests/tests/mirror-top-perms
index 451a066..2fc8dd6 100755
--- a/tests/qemu-iotests/tests/mirror-top-perms
+++ b/tests/qemu-iotests/tests/mirror-top-perms
@@ -47,7 +47,7 @@ class TestMirrorTopPerms(iotests.QMPTestCase):
def tearDown(self):
try:
self.vm.shutdown()
- except qemu.machine.AbnormalShutdown:
+ except qemu.machine.machine.AbnormalShutdown:
pass
if self.vm_b is not None: