]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/aarch64/test_rme_sbsaref: Silence issues reported by pylint
authorThomas Huth <thuth@redhat.com>
Wed, 19 Nov 2025 08:26:35 +0000 (09:26 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 21 Nov 2025 07:33:15 +0000 (08:33 +0100)
Drop unused import and use an encoding for open().

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20251119082636.43286-15-thuth@redhat.com>

tests/functional/aarch64/test_rme_sbsaref.py

index 6f92858397ad8afc5e3feb6c50992b2e250e2d28..4845c824960a02604ad2d4380fffa350d5970199 100755 (executable)
@@ -14,7 +14,6 @@ from os.path import join
 import shutil
 
 from qemu_test import QemuSystemTest, Asset, wait_for_console_pattern
-from qemu_test import exec_command_and_wait_for_pattern
 
 
 class Aarch64RMESbsaRefMachine(QemuSystemTest):
@@ -48,7 +47,7 @@ class Aarch64RMESbsaRefMachine(QemuSystemTest):
         efi = join(rme_stack, 'out', 'EFI')
         os.makedirs(efi, exist_ok=True)
         shutil.copyfile(join(rme_stack, 'out', 'Image'), join(efi, 'Image'))
-        with open(join(efi, 'startup.nsh'), 'w') as startup:
+        with open(join(efi, 'startup.nsh'), 'w', encoding='ascii') as startup:
             startup.write('fs0:Image nokaslr root=/dev/vda rw init=/init --'
                           ' /host/out/lkvm run --realm'
                           ' -m 256m'