[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/10] tests: Explicit usage of Python 3
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 03/10] tests: Explicit usage of Python 3 |
Date: |
Thu, 30 Jan 2020 00:13:55 +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 <address@hidden>
Suggested-by: Daniel P. Berrangé <address@hidden>
Suggested-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/docker/travis.py | 2 +-
tests/qapi-schema/test-qapi.py | 2 +-
tests/vm/centos | 2 +-
tests/vm/fedora | 2 +-
tests/vm/freebsd | 2 +-
tests/vm/netbsd | 2 +-
tests/vm/openbsd | 2 +-
tests/vm/ubuntu.i386 | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/docker/travis.py b/tests/docker/travis.py
index e1433012bd..62fccc5ebb 100755
--- a/tests/docker/travis.py
+++ b/tests/docker/travis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Travis YAML config parser
#
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py
index bad14edb47..503fb8ad25 100755
--- a/tests/qapi-schema/test-qapi.py
+++ b/tests/qapi-schema/test-qapi.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# QAPI parser test harness
#
diff --git a/tests/vm/centos b/tests/vm/centos
index f2f0befd84..a41ff109eb 100755
--- a/tests/vm/centos
+++ b/tests/vm/centos
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# CentOS image
#
diff --git a/tests/vm/fedora b/tests/vm/fedora
index 8e270fc0f0..4d7d6049f4 100755
--- a/tests/vm/fedora
+++ b/tests/vm/fedora
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Fedora VM image
#
diff --git a/tests/vm/freebsd b/tests/vm/freebsd
index 33a736298a..fb54334696 100755
--- a/tests/vm/freebsd
+++ b/tests/vm/freebsd
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# FreeBSD VM image
#
diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index ec6f3563b2..c5069a45f4 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# NetBSD VM image
#
diff --git a/tests/vm/openbsd b/tests/vm/openbsd
index d6173506f7..22cd9513dd 100755
--- a/tests/vm/openbsd
+++ b/tests/vm/openbsd
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# OpenBSD VM image
#
diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386
index 3834cd7a8d..48e9cb1ad3 100755
--- a/tests/vm/ubuntu.i386
+++ b/tests/vm/ubuntu.i386
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Ubuntu i386 image
#
--
2.21.1
- [PATCH 00/10] python: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 01/10] scripts: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 02/10] tests/qemu-iotests: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 03/10] tests: Explicit usage of Python 3,
Philippe Mathieu-Daudé <=
- [PATCH 04/10] scripts/minikconf: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 05/10] tests/acceptance: Remove shebang header, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 06/10] scripts/tracetool: Remove shebang header, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 07/10] tests/vm: Remove shebang header, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 08/10] tests/qemu-iotests: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 09/10] scripts: Explicit usage of Python 3, Philippe Mathieu-Daudé, 2020/01/29
- [PATCH 10/10] tests/qemu-iotests/check: Update to match Python 3 interpreter, Philippe Mathieu-Daudé, 2020/01/29