[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/10] tests/qemu-iotests: print intent to run a test in TAP mode
From: |
Kevin Wolf |
Subject: |
[PULL 04/10] tests/qemu-iotests: print intent to run a test in TAP mode |
Date: |
Thu, 12 May 2022 17:33:55 +0200 |
From: Daniel P. Berrangé <berrange@redhat.com>
When running I/O tests using TAP output mode, we get a single TAP test
with a sub-test reported for each I/O test that is run. The output looks
something like this:
1..123
ok qcow2 011
ok qcow2 012
ok qcow2 013
ok qcow2 217
...
If everything runs or fails normally this is fine, but periodically we
have been seeing the test harness abort early before all 123 tests have
been run, just leaving a fairly useless message like
TAP parsing error: Too few tests run (expected 123, got 107)
we have no idea which tests were running at the time the test harness
abruptly exited. This change causes us to print a message about our
intent to run each test, so we have a record of what is active at the
time the harness exits abnormally.
1..123
# running qcow2 011
ok qcow2 011
# running qcow2 012
ok qcow2 012
# running qcow2 013
ok qcow2 013
# running qcow2 217
ok qcow2 217
...
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220509124134.867431-2-berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
tests/qemu-iotests/testrunner.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py
index 10d9e8ef27..5a771da86e 100644
--- a/tests/qemu-iotests/testrunner.py
+++ b/tests/qemu-iotests/testrunner.py
@@ -361,6 +361,9 @@ def run_test(self, test: str,
starttime=start,
lasttime=last_el,
end = '\n' if mp else '\r')
+ else:
+ testname = os.path.basename(test)
+ print(f'# running {self.env.imgfmt} {testname}')
res = self.do_run_test(test, mp)
--
2.35.3
- [PULL 00/10] Block layer patches, Kevin Wolf, 2022/05/12
- [PULL 01/10] coroutine: Rename qemu_coroutine_inc/dec_pool_size(), Kevin Wolf, 2022/05/12
- [PULL 02/10] coroutine: Revert to constant batch size, Kevin Wolf, 2022/05/12
- [PULL 10/10] qemu-iotests: inline common.config into common.rc, Kevin Wolf, 2022/05/12
- [PULL 03/10] iotests/testrunner: Flush after run_test(), Kevin Wolf, 2022/05/12
- [PULL 07/10] tests/qtest/fdc-test: Add a regression test for CVE-2021-3507, Kevin Wolf, 2022/05/12
- [PULL 06/10] hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507), Kevin Wolf, 2022/05/12
- [PULL 08/10] qemu-nbd: Pass max connections to blockdev layer, Kevin Wolf, 2022/05/12
- [PULL 09/10] nbd/server: Allow MULTI_CONN for shared writable exports, Kevin Wolf, 2022/05/12
- [PULL 04/10] tests/qemu-iotests: print intent to run a test in TAP mode,
Kevin Wolf <=
- [PULL 05/10] .gitlab-ci.d: export meson testlog.txt as an artifact, Kevin Wolf, 2022/05/12
- Re: [PULL 00/10] Block layer patches, Richard Henderson, 2022/05/12