[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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PULL 32/46] tests/qemu-iotests/check: Allow use of python3 interpreter,
Philippe Mathieu-Daudé <=