qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

+35 -35
+1 -1
tests/qemu-iotests/030
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for image streaming. 4 4 #
+1 -1
tests/qemu-iotests/040
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for image block commit. 4 4 #
+1 -1
tests/qemu-iotests/041
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for image mirroring. 4 4 #
+1 -1
tests/qemu-iotests/044
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests growing a large refcount table. 4 4 #
+1 -1
tests/qemu-iotests/045
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for fdsets and getfd. 4 4 #
+1 -1
tests/qemu-iotests/055
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for drive-backup and blockdev-backup 4 4 #
+1 -1
tests/qemu-iotests/056
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for drive-backup 4 4 #
+1 -1
tests/qemu-iotests/057
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for internal snapshot. 4 4 #
+1 -1
tests/qemu-iotests/065
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test for additional information emitted by qemu-img info on qcow2 4 4 # images
+1 -1
tests/qemu-iotests/093
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for IO throttling 4 4 #
+1 -1
tests/qemu-iotests/096
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test that snapshots move the throttling configuration to the active 4 4 # layer
+1 -1
tests/qemu-iotests/118
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test case for the QMP 'change' command and all other associated 4 4 # commands
+1 -1
tests/qemu-iotests/124
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for incremental drive-backup 4 4 #
+1 -1
tests/qemu-iotests/129
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests that "bdrv_drain_all" doesn't drain block jobs 4 4 #
+1 -1
tests/qemu-iotests/132
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test mirror with unmap 4 4 #
+1 -1
tests/qemu-iotests/136
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for block device statistics 4 4 #
+1 -1
tests/qemu-iotests/139
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test cases for the QMP 'blockdev-del' command 4 4 #
+1 -1
tests/qemu-iotests/147
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test case for NBD's blockdev-add interface 4 4 #
+1 -1
tests/qemu-iotests/148
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test the rate limit of QMP events 4 4 #
+1 -1
tests/qemu-iotests/151
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for active mirroring 4 4 #
+1 -1
tests/qemu-iotests/152
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for drive-mirror with source size unaligned to granularity 4 4 #
+1 -1
tests/qemu-iotests/155
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test whether the backing BDSs are correct after completion of a 4 4 # mirror block job; in "existing" modes (drive-mirror with
+1 -1
tests/qemu-iotests/163
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for shrinking images 4 4 #
+1 -1
tests/qemu-iotests/165
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for persistent dirty bitmaps. 4 4 #
+1 -1
tests/qemu-iotests/169
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for dirty bitmaps migration. 4 4 #
+1 -1
tests/qemu-iotests/196
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test clearing unknown autoclear_features flag by qcow2 after 4 4 # migration. This test mimics migration to older qemu.
+1 -1
tests/qemu-iotests/199
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for dirty bitmaps postcopy migration. 4 4 #
+1 -1
tests/qemu-iotests/205
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tests for qmp command nbd-server-remove. 4 4 #
+1 -1
tests/qemu-iotests/245
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test cases for the QMP 'x-blockdev-reopen' command 4 4 #
+1 -1
tests/qemu-iotests/257
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test bitmap-sync backups (incremental, differential, and partials) 4 4 #
+1 -1
tests/qemu-iotests/258
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Very specific tests for adjacent commit/stream block jobs 4 4 #
+1 -1
tests/qemu-iotests/281
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Test cases for blockdev + IOThread interactions 4 4 #
+1 -1
tests/qemu-iotests/nbd-fault-injector.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # NBD server - fault injection utility 3 3 # 4 4 # Configuration file syntax:
+1 -1
tests/qemu-iotests/qcow2.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 3 3 from __future__ import print_function 4 4 import sys
+1 -1
tests/qemu-iotests/qed.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Tool to manipulate QED image files 4 4 #