]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: remove many unused imports
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Dec 2024 15:59:23 +0000 (15:59 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2024 18:39:53 +0000 (19:39 +0100)
Identified using 'pylint --disable=all --enable=W0611'

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20241217155953.3950506-3-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
16 files changed:
tests/functional/qemu_test/asset.py
tests/functional/qemu_test/tesseract.py
tests/functional/qemu_test/tuxruntest.py
tests/functional/test_aarch64_aspeed.py
tests/functional/test_aarch64_sbsaref_alpine.py
tests/functional/test_aarch64_sbsaref_freebsd.py
tests/functional/test_acpi_bits.py
tests/functional/test_arm_bpim2u.py
tests/functional/test_arm_collie.py
tests/functional/test_arm_cubieboard.py
tests/functional/test_arm_orangepi.py
tests/functional/test_arm_smdkc210.py
tests/functional/test_arm_sx1.py
tests/functional/test_microblaze_s3adsp1800.py
tests/functional/test_ppc_amiga.py
tests/functional/test_virtio_gpu.py

index f126cd5863a05d6596ee97a6d59a50c0242d9198..559af0351fba71de5ed5ab82add0497518f94221 100644 (file)
@@ -9,7 +9,6 @@ import hashlib
 import logging
 import os
 import stat
-import subprocess
 import sys
 import unittest
 import urllib.request
index db441027b9cf1fe9ed4193b0950184cf1416019e..ef1833139d3965e72b197a83841613b1060d785c 100644 (file)
@@ -5,7 +5,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or
 # later. See the COPYING file in the top-level directory.
 
-import re
 import logging
 
 from . import has_cmd, run_cmd
index ab3b27da43d03119fd51e5f14abfdb816c425d23..d375f2713b645f9084729249c1b6d60b5c339534 100644 (file)
 
 import os
 import stat
-import time
 
 from qemu_test import QemuSystemTest
-from qemu_test import exec_command, exec_command_and_wait_for_pattern
+from qemu_test import exec_command_and_wait_for_pattern
 from qemu_test import wait_for_console_pattern
 from qemu_test import has_cmd, run_cmd, get_qemu_img
 
index 59916efd71732184da84634f1fb688b6615262d1..e196f88537ae75c3e46999b8fcf8250e27aead78 100755 (executable)
@@ -6,7 +6,6 @@
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
 
-import sys
 import os
 
 from qemu_test import QemuSystemTest, Asset
index ebc29b2fb5efbc6c7d9e6cfc124a8b8165819768..6dbc90f30ee22221d7acd2940b3d68b759651dde 100755 (executable)
@@ -12,7 +12,6 @@ import os
 
 from qemu_test import QemuSystemTest, Asset
 from qemu_test import wait_for_console_pattern
-from qemu_test import interrupt_interactive_console_until_pattern
 from unittest import skipUnless
 from test_aarch64_sbsaref import fetch_firmware
 
index 80298dd1909a01828d7b4b1f52a613780a460f27..77ba2ba1daf15ed78aae46e53688d59993ee087c 100755 (executable)
@@ -12,7 +12,6 @@ import os
 
 from qemu_test import QemuSystemTest, Asset
 from qemu_test import wait_for_console_pattern
-from qemu_test import interrupt_interactive_console_until_pattern
 from unittest import skipUnless
 from test_aarch64_sbsaref import fetch_firmware
 
index 63e2c5309d716b6bc30710138ea1f5b717c9d80c..3df956239476e0409d477ba922a4d0cf5491d976 100755 (executable)
@@ -31,14 +31,12 @@ including an upgraded acpica. The fork is located here:
 https://gitlab.com/qemu-project/biosbits-bits .
 """
 
-import logging
 import os
 import platform
 import re
 import shutil
 import subprocess
 import tarfile
-import tempfile
 import zipfile
 
 from pathlib import Path
index 35ea58d46cb66020ba461bad9be6c49b3264e036..c9cf43c147dfd5c2d35f483637b13ddb7a20092d 100755 (executable)
@@ -9,7 +9,7 @@ import os
 
 from qemu_test import LinuxKernelTest, exec_command_and_wait_for_pattern
 from qemu_test import Asset, interrupt_interactive_console_until_pattern
-from qemu_test.utils import archive_extract, gzip_uncompress, lzma_uncompress
+from qemu_test.utils import gzip_uncompress, lzma_uncompress
 from qemu_test.utils import image_pow2ceil_expand
 from unittest import skipUnless
 
index 7e144a0a8fb38a443e2cad7181f0a9a56d16238e..fe1be3d07922e75fb946d9c0c8927986ae81e0e8 100755 (executable)
@@ -6,7 +6,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 from qemu_test import LinuxKernelTest, Asset
-from qemu_test.utils import archive_extract
+
 
 class CollieTest(LinuxKernelTest):
 
index 2b33a1b50b8e21cd0d8d90cbe2ebb936f5d94adc..9e42b720601143434200ebe44e1ac2e79eeb33cd 100755 (executable)
@@ -5,7 +5,6 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 import os
-import shutil
 
 from qemu_test import LinuxKernelTest, Asset, exec_command_and_wait_for_pattern
 from qemu_test import interrupt_interactive_console_until_pattern
index 6d57223a036823c61d5d9c6cae703fd2c392eafa..a872305e939c722353cc0ac70a3da270ac8c9cca 100755 (executable)
@@ -11,7 +11,7 @@ import shutil
 from qemu_test import LinuxKernelTest, exec_command_and_wait_for_pattern
 from qemu_test import Asset, interrupt_interactive_console_until_pattern
 from qemu_test import wait_for_console_pattern
-from qemu_test.utils import archive_extract, gzip_uncompress, lzma_uncompress
+from qemu_test.utils import gzip_uncompress, lzma_uncompress
 from qemu_test.utils import image_pow2ceil_expand
 from unittest import skipUnless
 
index 967752feebae59b23983bf25c0ae32628ea0003b..b3b39b069df16a17e6a8db223f178eec76e03a38 100755 (executable)
@@ -5,9 +5,8 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 import os
-import shutil
 
-from qemu_test import LinuxKernelTest, Asset, exec_command_and_wait_for_pattern
+from qemu_test import LinuxKernelTest, Asset
 from qemu_test.utils import gzip_uncompress
 
 class Smdkc210Machine(LinuxKernelTest):
index 22923179468629582e7f9f22afde93210d5cfc91..b85bfaa178f9d320ff135c08f42f96176a909c59 100755 (executable)
@@ -14,7 +14,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 from qemu_test import LinuxKernelTest, Asset
-from qemu_test.utils import archive_extract
+
 
 class SX1Test(LinuxKernelTest):
 
index d2be3105a250d5c8f9845f6d4316cf0116e92983..d452a0271ccb58ecbd974246dee73511537c1d06 100755 (executable)
@@ -7,7 +7,6 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or
 # later. See the COPYING file in the top-level directory.
 
-from qemu_test import exec_command, exec_command_and_wait_for_pattern
 from qemu_test import QemuSystemTest, Asset
 from qemu_test import wait_for_console_pattern
 from qemu_test.utils import archive_extract
index b793b5c4322d0d9f7d8fa69b9391faef42d55d38..f5faa0f0b3be17a2f262bc0fcce9ef3363141e79 100755 (executable)
@@ -10,7 +10,7 @@
 import subprocess
 
 from qemu_test import QemuSystemTest, Asset
-from qemu_test import wait_for_console_pattern, run_cmd
+from qemu_test import wait_for_console_pattern
 from zipfile import ZipFile
 
 class AmigaOneMachine(QemuSystemTest):
index d5027487ac4fa46b1f53a2a058d5d7ac380ef514..2d298b1f02ad70ebc4b51f0b0b1bf5433e32117c 100755 (executable)
@@ -12,7 +12,6 @@ from qemu_test import wait_for_console_pattern
 from qemu_test import exec_command_and_wait_for_pattern
 from qemu_test import is_readable_executable_file
 
-from qemu.utils import kvm_available
 
 import os
 import socket