]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
iotests: print reason when I/O test is skipped in TAP mode
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 Oct 2025 15:19:36 +0000 (16:19 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 21 May 2026 11:39:54 +0000 (12:39 +0100)
The TAP output on a skipped test:

  ok raw 181 # SKIP

is not informative.

The test program included a reason, and that should be displayed
in TAP mode (it is already shown in non-TAP mode):

  ok raw 181 # SKIP Postcopy is not supported

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemu-iotests/testrunner.py

index e2a365899414b7aabaa894d67e9bba27fd4c9231..dbe2dddc32ead3340fc84befc55f728f7cc1a3cc 100644 (file)
@@ -174,7 +174,7 @@ class TestRunner(contextlib.AbstractContextManager['TestRunner']):
             elif status == 'fail':
                 print(f'not ok {self.env.imgfmt} {test}')
             elif status == 'not run':
-                print(f'ok {self.env.imgfmt} {test} # SKIP')
+                print(f'ok {self.env.imgfmt} {test} # SKIP {description}')
             return
 
         if lasttime: