tests/qemu-iotests: Explicit usage of Python3 (scripts without __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 -lF '#!/usr/bin/env python' \
      | xargs 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-11-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:30 +01:00
parent 629d5edfaa
commit 7c47752608
36 changed files with 36 additions and 36 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2016 Red Hat, Inc. # Copyright (C) 2016 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2017 Red Hat, Inc. # Copyright (C) 2017 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2017 Red Hat, Inc. # Copyright (C) 2017 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2017 Red Hat, Inc. # Copyright (C) 2017 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test qcow2 and file image creation # Test qcow2 and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test ssh image creation # Test ssh image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2018 Red Hat, Inc. # Copyright (C) 2018 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for NBD BLOCK_STATUS extension # Tests for NBD BLOCK_STATUS extension
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test luks and file image creation # Test luks and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test VDI and file image creation # Test VDI and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test parallels and file image creation # Test parallels and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test vhdx and file image creation # Test vhdx and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copy-on-read tests using a COR filter node # Copy-on-read tests using a COR filter node
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This test covers what happens when a mirror block job is cancelled # This test covers what happens when a mirror block job is cancelled
# in various phases of its existence. # in various phases of its existence.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2018 Red Hat, Inc. # Copyright (C) 2018 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This test covers the basic fleecing workflow, which provides a # This test covers the basic fleecing workflow, which provides a
# point-in-time snapshot of a node that can be queried over NBD. # point-in-time snapshot of a node that can be queried over NBD.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test json:{} filenames with qemu-internal BDSs # Test json:{} filenames with qemu-internal BDSs
# (the one of commit, to be precise) # (the one of commit, to be precise)

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test for when a backing file is considered overridden (thus, a # Test for when a backing file is considered overridden (thus, a
# json:{} filename is generated for the overlay) and when it is not # json:{} filename is generated for the overlay) and when it is not

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2018 Red Hat, Inc. # Copyright (C) 2018 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Simple mirror test # Simple mirror test
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test bitmap merges. # Test bitmap merges.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test vmdk and file image creation # Test vmdk and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Regression test for throttle group member unregister segfault with iothread # Regression test for throttle group member unregister segfault with iothread
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test for qcow2 bitmap printed information # Test for qcow2 bitmap printed information
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test persistent bitmap resizing. # Test persistent bitmap resizing.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test resume mirror after auto pause on ENOSPC # Test resume mirror after auto pause on ENOSPC
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test external snapshot with bitmap copying and moving. # Test external snapshot with bitmap copying and moving.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test commit job graph modifications while requests are active # Test commit job graph modifications while requests are active
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test incremental/backup across iothread contexts # Test incremental/backup across iothread contexts
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Tests for temporary external snapshot when we have bitmaps. # Tests for temporary external snapshot when we have bitmaps.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2019 Red Hat, Inc. # Copyright (C) 2019 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test nbd reconnect # Test nbd reconnect
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test VPC and file image creation # Test VPC and file image creation
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test NBD client reconnection # Test NBD client reconnection
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Copyright (C) 2019 Red Hat, Inc. # Copyright (C) 2019 Red Hat, Inc.
# #

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Test for backup-top filter permission activation failure # Test for backup-top filter permission activation failure
# #