aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-01-30 17:32:22 +0100
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2020-02-07 15:12:48 +0100
commit15b015690b62c7c463fa6f5cdb2bc669749eefc3 (patch)
tree328a26859e63c212604f6f2e8596f24f5ab2f46c /tests
parentbc7f3b0b0d33fb58272a98c862dc9a1fa913fcd3 (diff)
downloadqemu-15b015690b62c7c463fa6f5cdb2bc669749eefc3.zip
qemu-15b015690b62c7c463fa6f5cdb2bc669749eefc3.tar.gz
qemu-15b015690b62c7c463fa6f5cdb2bc669749eefc3.tar.bz2
tests/qemu-iotests/check: Allow use of python3 interpreter
As we want to enforce a unique and explicit Python 3 interpreter, we need let this script handle 'python3' too. Suggested-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200130163232.10446-3-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qemu-iotests/check3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index fff5fa9..1789ada 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -846,7 +846,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