Bladeren bron

tests: Explicit usage of Python 3

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>
Philippe Mathieu-Daudé 5 jaren geleden
bovenliggende
commit
c88ee46cdb
8 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 1 1
      tests/docker/travis.py
  2. 1 1
      tests/qapi-schema/test-qapi.py
  3. 1 1
      tests/vm/centos
  4. 1 1
      tests/vm/fedora
  5. 1 1
      tests/vm/freebsd
  6. 1 1
      tests/vm/netbsd
  7. 1 1
      tests/vm/openbsd
  8. 1 1
      tests/vm/ubuntu.i386

+ 1 - 1
tests/docker/travis.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # Travis YAML config parser
 # Travis YAML config parser
 #
 #

+ 1 - 1
tests/qapi-schema/test-qapi.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # QAPI parser test harness
 # QAPI parser test harness
 #
 #

+ 1 - 1
tests/vm/centos

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # CentOS image
 # CentOS image
 #
 #

+ 1 - 1
tests/vm/fedora

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # Fedora VM image
 # Fedora VM image
 #
 #

+ 1 - 1
tests/vm/freebsd

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # FreeBSD VM image
 # FreeBSD VM image
 #
 #

+ 1 - 1
tests/vm/netbsd

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # NetBSD VM image
 # NetBSD VM image
 #
 #

+ 1 - 1
tests/vm/openbsd

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # OpenBSD VM image
 # OpenBSD VM image
 #
 #

+ 1 - 1
tests/vm/ubuntu.i386

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 # Ubuntu i386 image
 # Ubuntu i386 image
 #
 #