From: Philippe Mathieu-Daudé Date: Thu, 30 Jan 2020 16:32:32 +0000 (+0100) Subject: tests/qemu-iotests/check: Only check for Python 3 interpreter X-Git-Tag: v5.0.0-rc0~101^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=351aa2706e1d19e2ad878e5d9333ca9e9825d0cd;p=thirdparty%2Fqemu.git tests/qemu-iotests/check: Only check for Python 3 interpreter All the iotests Python scripts have been converted to search for the Python 3 interpreter. Update the ./check script accordingly. Acked-by: Stefan Hajnoczi Acked-by: Paolo Bonzini Message-Id: <20200130163232.10446-13-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index 1789ada52ef..f7a2d3d6c3b 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -846,8 +846,7 @@ do start=$(_wallclock) - if [ "$(head -n 1 "$source_iotests/$seq" | sed 's/3$//')" \ - == "#!/usr/bin/env python" ]; then + if [ "$(head -n 1 "$source_iotests/$seq")" == "#!/usr/bin/env python3" ]; then if $python_usable; then run_command="$PYTHON $seq" else