]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: always use a unique sub-directory per test
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 15 Mar 2023 17:43:22 +0000 (17:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 22 Mar 2023 15:08:26 +0000 (15:08 +0000)
commit5ba7db0938c8b8e6e457b9aab8c6c625913d773f
tree405d3ae69ee9cc28d6052df4a9f387b694cd6c0d
parentcb845eaa88eb266c5023af06989e94d95c712871
iotests: always use a unique sub-directory per test

The current test runner is only safe against parallel execution within
a single instance of the 'check' process, and only if -j is given a
value greater than 2. This prevents running multiple copies of the
'check' process for different test scenarios.

This change switches the output / socket directories to always include
the test name, image format and image protocol. This should allow full
parallelism of all distinct test scenarios. eg running both qcow2 and
raw tests at the same time, or both file and nbd tests at the same
time.

It would be possible to allow for parallelism of the same test scenario
by including the pid, but that would potentially let many directories
accumulate over time on failures, so is not done.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Hanna Czenczek <hreitz@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230303160727.3977246-7-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230315174331.2959-24-alex.bennee@linaro.org>
tests/qemu-iotests/testrunner.py