tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__)

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-4-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2020-01-30 17:32:23 +01:00
parent 15b015690b
commit 903cb1bf39
35 changed files with 35 additions and 35 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for image streaming. # Tests for image streaming.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for image block commit. # Tests for image block commit.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for image mirroring. # Tests for image mirroring.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests growing a large refcount table. # Tests growing a large refcount table.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for fdsets and getfd. # Tests for fdsets and getfd.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for drive-backup and blockdev-backup # Tests for drive-backup and blockdev-backup
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for drive-backup # Tests for drive-backup
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for internal snapshot. # Tests for internal snapshot.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test for additional information emitted by qemu-img info on qcow2 # Test for additional information emitted by qemu-img info on qcow2
# images # images

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for IO throttling # Tests for IO throttling
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test that snapshots move the throttling configuration to the active # Test that snapshots move the throttling configuration to the active
# layer # layer

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test case for the QMP 'change' command and all other associated # Test case for the QMP 'change' command and all other associated
# commands # commands

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for incremental drive-backup # Tests for incremental drive-backup
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests that "bdrv_drain_all" doesn't drain block jobs # Tests that "bdrv_drain_all" doesn't drain block jobs
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test mirror with unmap # Test mirror with unmap
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for block device statistics # Tests for block device statistics
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test cases for the QMP 'blockdev-del' command # Test cases for the QMP 'blockdev-del' command
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test case for NBD's blockdev-add interface # Test case for NBD's blockdev-add interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test the rate limit of QMP events # Test the rate limit of QMP events
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for active mirroring # Tests for active mirroring
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for drive-mirror with source size unaligned to granularity # Tests for drive-mirror with source size unaligned to granularity
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test whether the backing BDSs are correct after completion of a # Test whether the backing BDSs are correct after completion of a
# mirror block job; in "existing" modes (drive-mirror with # mirror block job; in "existing" modes (drive-mirror with

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for shrinking images # Tests for shrinking images
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for persistent dirty bitmaps. # Tests for persistent dirty bitmaps.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for dirty bitmaps migration. # Tests for dirty bitmaps migration.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test clearing unknown autoclear_features flag by qcow2 after # Test clearing unknown autoclear_features flag by qcow2 after
# migration. This test mimics migration to older qemu. # migration. This test mimics migration to older qemu.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for dirty bitmaps postcopy migration. # Tests for dirty bitmaps postcopy migration.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for qmp command nbd-server-remove. # Tests for qmp command nbd-server-remove.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test cases for the QMP 'x-blockdev-reopen' command # Test cases for the QMP 'x-blockdev-reopen' command
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test bitmap-sync backups (incremental, differential, and partials) # Test bitmap-sync backups (incremental, differential, and partials)
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Very specific tests for adjacent commit/stream block jobs # Very specific tests for adjacent commit/stream block jobs
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test cases for blockdev + IOThread interactions # Test cases for blockdev + IOThread interactions
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# NBD server - fault injection utility # NBD server - fault injection utility
# #
# Configuration file syntax: # Configuration file syntax:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tool to manipulate QED image files # Tool to manipulate QED image files
# #