From: "Nicholas Piggin" <npiggin@gmail.com>
To: "Thomas Huth" <thuth@redhat.com>, <qemu-devel@nongnu.org>
Cc: qemu-ppc@nongnu.org,
"Daniel Henrique Barboza" <danielhb413@gmail.com>,
"Harsh Prateek Bora" <harshpb@linux.ibm.com>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: [PATCH] tests/functional: Fix the ppc64_hv and the ppc_40p test for read-only assets
Date: Fri, 08 Nov 2024 12:19:56 +1000 [thread overview]
Message-ID: <D5GFRSOQDWYJ.2WQBSSB5WHJ83@gmail.com> (raw)
In-Reply-To: <20241105160926.393852-1-thuth@redhat.com>
On Wed Nov 6, 2024 at 2:09 AM AEST, Thomas Huth wrote:
> Since commit 786bc2255256, 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")
> Signed-off-by: Thomas Huth <thuth@redhat.com>
LGTM
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
> ---
> tests/functional/test_ppc64_hv.py | 3 ++-
> tests/functional/test_ppc_40p.py | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
> index 1a6e4b6d07..312248bbfe 100755
> --- a/tests/functional/test_ppc64_hv.py
> +++ b/tests/functional/test_ppc64_hv.py
> @@ -99,7 +99,8 @@ def do_start_alpine(self):
> 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')
> diff --git a/tests/functional/test_ppc_40p.py b/tests/functional/test_ppc_40p.py
> index c64e876c1f..67bcdae53a 100755
> --- a/tests/functional/test_ppc_40p.py
> +++ b/tests/functional/test_ppc_40p.py
> @@ -46,7 +46,8 @@ def test_factory_firmware_and_netbsd(self):
>
> 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)
prev parent reply other threads:[~2024-11-08 2:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 16:09 [PATCH] tests/functional: Fix the ppc64_hv and the ppc_40p test for read-only assets Thomas Huth
2024-11-08 2:19 ` Nicholas Piggin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D5GFRSOQDWYJ.2WQBSSB5WHJ83@gmail.com \
--to=npiggin@gmail.com \
--cc=danielhb413@gmail.com \
--cc=harshpb@linux.ibm.com \
--cc=hpoussin@reactos.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).