tests/functional/aarch64/test_rme_sbsaref: Silence issues reported by pylint
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>
This commit is contained in:
parent
76da444a53
commit
2bfba5d94b
1 changed files with 1 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue