]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/.../reverse_debugging: Remove unsatisfiable condition
authorYodel Eldar <yodel.eldar@yodel.dev>
Tue, 3 Feb 2026 18:21:53 +0000 (12:21 -0600)
committerThomas Huth <thuth@redhat.com>
Tue, 10 Feb 2026 09:52:48 +0000 (10:52 +0100)
get_qemu_img() already skips the test if qemu-img is not found and does
not return None. Eliminate the check for None on its result, and the
unreachable skipTest() gated by it.

Signed-off-by: Yodel Eldar <yodel.eldar@yodel.dev>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260203182153.75276-1-yodel.eldar@yodel.dev>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/reverse_debugging.py

index 8e6f0b0e9232ccb629b6f354a43123438c857145..eaf178da496157398e493b224baad6f5c276ec29 100644 (file)
@@ -73,9 +73,6 @@ class ReverseDebugging(LinuxKernelTest):
         self.log.info('creating qcow2 image for VM snapshots')
         image_path = os.path.join(self.workdir, 'disk.qcow2')
         qemu_img = get_qemu_img(self)
-        if qemu_img is None:
-            self.skipTest('Could not find "qemu-img", which is required to '
-                          'create the temporary qcow2 image')
         out = check_output([qemu_img, 'create', '-f', 'qcow2', image_path, '128M'],
                            encoding='utf8')
         self.log.info("qemu-img: %s" % out)