diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-12-03 13:22:23 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2021-12-22 16:29:48 +0100 |
commit | 722f87df2545b308aec49b459b028f0802b4fd9e (patch) | |
tree | 15bfb3416aefe1aca10d113104f68ab16144207e /configs | |
parent | 1f257b70d143d6c3330e6194bd977483c5f61b9b (diff) | |
download | qemu-722f87df2545b308aec49b459b028f0802b4fd9e.zip qemu-722f87df2545b308aec49b459b028f0802b4fd9e.tar.gz qemu-722f87df2545b308aec49b459b028f0802b4fd9e.tar.bz2 |
iotests: check: multiprocessing support
Add -j <JOBS> parameter, to run tests in several jobs simultaneously.
For realization - simply utilize multiprocessing.Pool class.
Notes:
1. Of course, tests can't run simultaneously in same TEST_DIR. So,
use subdirectories TEST_DIR/testname/ and SOCK_DIR/testname/
instead of simply TEST_DIR and SOCK_DIR
2. multiprocessing.Pool.starmap function doesn't support passing
context managers, so we can't simply pass "self". Happily, we need
self only for read-only access, and it just works if it is defined
in global space. So, add a temporary link TestRunner.shared_self
during run_tests().
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211203122223.2780098-4-vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Tested-by: John Snow <jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions