From: Daniel P. Berrangé Date: Wed, 15 Mar 2023 17:43:20 +0000 (+0000) Subject: iotests: print TAP protocol version when reporting tests X-Git-Tag: pull-xenfv-stable-20231106~380^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e5792a1f6ecc155fc977e3813e75fc8ede478ab;p=users%2Fdwmw2%2Fqemu.git iotests: print TAP protocol version when reporting tests Recently meson started complaining that TAP test reports don't include the TAP protocol version. While this warning is bogus and has since been removed from Meson, it looks like good practice to include this header going forward. The GLib library test harness has started unconditionally printing the version, so this brings the I/O tests into line. Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée Signed-off-by: Daniel P. Berrangé Acked-by: Hanna Czenczek Tested-by: Thomas Huth Message-Id: <20230303160727.3977246-5-berrange@redhat.com> Signed-off-by: Alex Bennée Message-Id: <20230315174331.2959-22-alex.bennee@linaro.org> --- diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py index 5a771da86e..e734800b3d 100644 --- a/tests/qemu-iotests/testrunner.py +++ b/tests/qemu-iotests/testrunner.py @@ -391,6 +391,7 @@ class TestRunner(ContextManager['TestRunner']): casenotrun = [] if self.tap: + print('TAP version 13') self.env.print_env('# ') print('1..%d' % len(tests)) else: