tests: Explicit usage of Python 3
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Jan 2020 16:32:24 +0000 (17:32 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 7 Feb 2020 14:12:48 +0000 (15:12 +0100)
Use the program search path to find the Python 3 interpreter.

Patch created mechanically by running:

  $ sed -i "s,^#\!/usr/bin/\(env\ \)\?python$,#\!/usr/bin/env python3," \
       $(git grep -l 'if __name__.*__main__')

Reported-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200130163232.10446-5-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/docker/travis.py
tests/qapi-schema/test-qapi.py
tests/vm/centos
tests/vm/fedora
tests/vm/freebsd
tests/vm/netbsd
tests/vm/openbsd
tests/vm/ubuntu.i386

index e1433012bddfb789973c5b8b2e68aa66c0123e9c..62fccc5ebb36bbd6ee2cd6a9742237580976f99b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Travis YAML config parser
 #
index bad14edb476a226c8b58663ef1fe6bb303f2267f..503fb8ad257c6c54e4e8e7419eda9fd8def2cbea 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # QAPI parser test harness
 #
index f2f0befd845369c881b4efbb78b26c5110ee011e..a41ff109eb5174be61444ca258cf4771cacc34a6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # CentOS image
 #
index 8e270fc0f03e2d5f3c6751d9f869dababf13a363..4d7d6049f4fb1be5a74f06f3375f10233c18db5e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Fedora VM image
 #
index 33a736298a9a58c9184ea779f7dad979493e7016..fb543346963f47897130d510fa6929b3f90341be 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # FreeBSD VM image
 #
index ec6f3563b2579bc60e10f771634431cbde4dd94c..c5069a45f4e4e6ec92542179b6cd20e2e8a33868 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # NetBSD VM image
 #
index d6173506f783e4ebd7878a41a3ddae3857c5615e..22cd9513dd5b1b4307509ae812a9efcaf6f19987 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # OpenBSD VM image
 #
index 3834cd7a8df626072c4c209504515531bc6a96da..48e9cb1ad3da5d77884fd114f3f395cc747018d3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Ubuntu i386 image
 #