[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 02dd48: iotests/testrunner.py: add doc string
From: |
Richard Henderson |
Subject: |
[Qemu-commits] [qemu/qemu] 02dd48: iotests/testrunner.py: add doc string for run_test() |
Date: |
Wed, 22 Dec 2021 18:33:27 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 02dd48f8598be6c6be005594c5a6adca147b3a78
https://github.com/qemu/qemu/commit/02dd48f8598be6c6be005594c5a6adca147b3a78
Author: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Date: 2021-12-22 (Wed, 22 Dec 2021)
Changed paths:
M tests/qemu-iotests/testrunner.py
Log Message:
-----------
iotests/testrunner.py: add doc string for run_test()
We are going to modify these methods and will add more documentation in
further commit. As a preparation add basic documentation.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211203122223.2780098-2-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>
Commit: 1f257b70d143d6c3330e6194bd977483c5f61b9b
https://github.com/qemu/qemu/commit/1f257b70d143d6c3330e6194bd977483c5f61b9b
Author: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Date: 2021-12-22 (Wed, 22 Dec 2021)
Changed paths:
M tests/qemu-iotests/testrunner.py
Log Message:
-----------
iotests/testrunner.py: move updating last_elapsed to run_tests
We are going to use do_run_test() in multiprocessing environment, where
we'll not be able to change original runner object.
Happily, the only thing we change is that last_elapsed and it's simple
to do it in run_tests() instead. All other accesses to self in
do_runt_test() and in run_test() are read-only.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211203122223.2780098-3-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>
Commit: 722f87df2545b308aec49b459b028f0802b4fd9e
https://github.com/qemu/qemu/commit/722f87df2545b308aec49b459b028f0802b4fd9e
Author: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Date: 2021-12-22 (Wed, 22 Dec 2021)
Changed paths:
M tests/qemu-iotests/check
M tests/qemu-iotests/testrunner.py
Log Message:
-----------
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>
Commit: 6f016a2f7909eb6d595436a2f56cdf7cdf3e3c68
https://github.com/qemu/qemu/commit/6f016a2f7909eb6d595436a2f56cdf7cdf3e3c68
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2021-12-22 (Wed, 22 Dec 2021)
Changed paths:
M tests/qemu-iotests/check
M tests/qemu-iotests/testrunner.py
Log Message:
-----------
Merge tag 'pull-block-2021-12-22' of https://gitlab.com/hreitz/qemu into
staging
Block patches:
- Added support to the iotests for running tests in several parallel
jobs (using the new -j parameter)
# gpg: Signature made Wed 22 Dec 2021 08:38:55 AM PST
# gpg: using RSA key CB62D7A0EE3829E45F004D34A1FA40D098019CDF
# gpg: issuer "hreitz@redhat.com"
# gpg: Good signature from "Hanna Reitz <hreitz@redhat.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: CB62 D7A0 EE38 29E4 5F00 4D34 A1FA 40D0 9801 9CDF
* tag 'pull-block-2021-12-22' of https://gitlab.com/hreitz/qemu:
iotests: check: multiprocessing support
iotests/testrunner.py: move updating last_elapsed to run_tests
iotests/testrunner.py: add doc string for run_test()
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Compare: https://github.com/qemu/qemu/compare/8d29feca838b...6f016a2f7909