diff options
author | Peter Maydell | 2021-01-29 16:49:29 +0100 |
---|---|---|
committer | Peter Maydell | 2021-01-29 16:49:29 +0100 |
commit | 3701c07e63bb945137bf80fe35e7058ad3784c45 (patch) | |
tree | afa03ec84821b5d9c9d86a9c38ba9863dd057b55 /tests/qemu-iotests | |
parent | Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-for-6.0-pul... (diff) | |
parent | tests/Makefile.include: export PYTHON for check-block.sh (diff) | |
download | qemu-3701c07e63bb945137bf80fe35e7058ad3784c45.tar.gz qemu-3701c07e63bb945137bf80fe35e7058ad3784c45.tar.xz qemu-3701c07e63bb945137bf80fe35e7058ad3784c45.zip |
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
Block layer patches:
- Fix iotests to respect configured Python binary
# gpg: Signature made Fri 29 Jan 2021 14:51:01 GMT
# gpg: using RSA key DC3DEB159A9AF95D3D7456FE7F09B272C88F2FD6
# gpg: issuer "kwolf@redhat.com"
# gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
# Primary key fingerprint: DC3D EB15 9A9A F95D 3D74 56FE 7F09 B272 C88F 2FD6
* remotes/kevin/tags/for-upstream:
tests/Makefile.include: export PYTHON for check-block.sh
iotests/testrunner: fix recognition of python tests
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/qemu-iotests')
-rw-r--r-- | tests/qemu-iotests/testrunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py index a581be6a29..24b3fba115 100644 --- a/tests/qemu-iotests/testrunner.py +++ b/tests/qemu-iotests/testrunner.py @@ -248,7 +248,7 @@ class TestRunner(ContextManager['TestRunner']): with f_test.open(encoding="utf-8") as f: try: - if f.readline() == '#!/usr/bin/env python3': + if f.readline().rstrip() == '#!/usr/bin/env python3': args.insert(0, self.env.python) except UnicodeDecodeError: # binary test? for future. pass |