[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 32/46] tests/qemu-iotests/check: Allow use of python3 interpreter
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 32/46] tests/qemu-iotests/check: Allow use of python3 interpreter |
Date: |
Thu, 6 Feb 2020 22:19:22 +0100 |
As we want to enforce a unique and explicit Python 3 interpreter,
we need let this script handle 'python3' too.
Suggested-by: Kevin Wolf <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/qemu-iotests/check | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index 39ed5bc1be..f5afb12016 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -838,7 +838,8 @@ do
start=$(_wallclock)
- if [ "$(head -n 1 "$source_iotests/$seq")" == "#!/usr/bin/env python"
]; then
+ if [ "$(head -n 1 "$source_iotests/$seq" | sed 's/3$//')" \
+ == "#!/usr/bin/env python" ]; then
if $python_usable; then
run_command="$PYTHON $seq"
else
--
2.21.1
- [PULL 21/46] tests/acceptance/virtio_check_params: Default to -nodefaults, (continued)
- [PULL 21/46] tests/acceptance/virtio_check_params: Default to -nodefaults, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 19/46] tests/acceptance/virtio_check_params: Improve exception logging, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 22/46] tests/acceptance/virtio_check_params: Disable the test, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 25/46] tests/acceptance/migration: Factor out assert_migration(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 27/46] tests/acceptance/migration: Test UNIX transport when migrating, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 26/46] tests/acceptance/migration: Factor out do_migrate(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 28/46] tests/acceptance/migration: Test EXEC transport when migrating, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 29/46] tests/acceptance/migration: Add the 'migration' tag, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 30/46] tests/acceptance/migration: Default to -nodefaults, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 31/46] scripts/checkpatch.pl: Only allow Python 3 interpreter, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 32/46] tests/qemu-iotests/check: Allow use of python3 interpreter,
Philippe Mathieu-Daudé <=
- [PULL 33/46] tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 34/46] tests: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 36/46] scripts/minikconf: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 35/46] scripts: Explicit usage of Python 3 (scripts with __main__), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 37/46] scripts/tracetool: Remove shebang header, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 38/46] tests/acceptance: Remove shebang header, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 39/46] tests/vm: Remove shebang header, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 40/46] tests/qemu-iotests: Explicit usage of Python3 (scripts without __main__), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 41/46] scripts: Explicit usage of Python 3 (scripts without __main__), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 42/46] tests/qemu-iotests/check: Only check for Python 3 interpreter, Philippe Mathieu-Daudé, 2020/02/06