tests/functional: Fix the ppc64_hv and the ppc_40p test for read-only assets
Since commit786bc22552
, cached asset files are read-only, so now we've got to use "read-only=true" in tests that try to use these files directly. Fixes:786bc22552
("tests/functional: make cached asset files read-only") Message-ID: <20241105160926.393852-1-thuth@redhat.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
feda2611b9
commit
dd6402b34f
@ -99,7 +99,8 @@ class HypervisorTest(QemuSystemTest):
|
||||
self.vm.add_args("-kernel", self.vmlinuz)
|
||||
self.vm.add_args("-initrd", self.initramfs)
|
||||
self.vm.add_args("-smp", "4", "-m", "2g")
|
||||
self.vm.add_args("-drive", f"file={self.iso_path},format=raw,if=none,id=drive0")
|
||||
self.vm.add_args("-drive", f"file={self.iso_path},format=raw,if=none,"
|
||||
"id=drive0,read-only=true")
|
||||
|
||||
self.vm.launch()
|
||||
wait_for_console_pattern(self, 'Welcome to Alpine Linux 3.18')
|
||||
|
@ -46,7 +46,8 @@ class IbmPrep40pMachine(QemuSystemTest):
|
||||
|
||||
self.vm.set_console()
|
||||
self.vm.add_args('-bios', bios_path,
|
||||
'-fda', drive_path)
|
||||
'-drive',
|
||||
f"file={drive_path},format=raw,if=floppy,read-only=true")
|
||||
self.vm.launch()
|
||||
os_banner = 'NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:49:40 PST 2007'
|
||||
wait_for_console_pattern(self, os_banner)
|
||||
|
Loading…
Reference in New Issue
Block a user