From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>,
qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, Leif Lindholm <quic_llindhol@quicinc.com>,
Radoslaw Biernacki <rad@semihalf.com>,
Peter Maydell <peter.maydell@linaro.org>,
Cleber Rosa <crosa@redhat.com>,
Wainer dos Santos Moschetta <wainersm@redhat.com>,
Beraldo Leal <bleal@redhat.com>
Subject: Re: [PATCH v4 2/2] tests/avocado: add test for default sbsa-ref cpu
Date: Wed, 3 Jul 2024 16:11:40 +0200 [thread overview]
Message-ID: <6f231ac5-bbe1-44ab-9acf-37cddbc1ad6d@linaro.org> (raw)
In-Reply-To: <20240703-b4-move-to-freebsd-v4-2-07191f958530@linaro.org>
On 3/7/24 16:06, Marcin Juszkiewicz wrote:
> We changed sbsa-ref cpu several times already and may do it again in a
> future. To newer core or to enable/disable some properties.
>
> This change switches Neoverse-N2 tests to 'let test default cpu' ones.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> tests/avocado/machine_aarch64_sbsaref.py | 29 ++++++++++++++++-------------
> 1 file changed, 16 insertions(+), 13 deletions(-)
>
> diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py
> index 2e27d37cb8..46a1d982f3 100644
> --- a/tests/avocado/machine_aarch64_sbsaref.py
> +++ b/tests/avocado/machine_aarch64_sbsaref.py
> @@ -113,7 +113,7 @@ def test_sbsaref_edk2_firmware(self):
> # This tests the whole boot chain from EFI to Userspace
> # We only boot a whole OS for the current top level CPU and GIC
> # Other test profiles should use more minimal boots
> - def boot_alpine_linux(self, cpu):
> + def boot_alpine_linux(self, cpu=False):
> self.fetch_firmware()
>
> iso_url = (
> @@ -126,12 +126,14 @@ def boot_alpine_linux(self, cpu):
>
> self.vm.set_console()
> self.vm.add_args(
> - "-cpu",
> - cpu,
> "-drive",
> f"file={iso_path},format=raw",
> )
>
> + # let allow test which will use default cpu of platform
> + if cpu:
> + self.vm.add_args("-cpu", cpu)
I think the pythonic way is to initialize cpu=None instead of False.
> +
> self.vm.launch()
> wait_for_console_pattern(self, "Welcome to Alpine Linux 3.17")
prev parent reply other threads:[~2024-07-03 14:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-03 14:06 [PATCH v4 0/2] tests/avocado: updates for sbsa-ref testing Marcin Juszkiewicz
2024-07-03 14:06 ` [PATCH v4 1/2] tests/avocado: sbsa-ref: add FreeBSD tests Marcin Juszkiewicz
2024-07-03 14:09 ` Philippe Mathieu-Daudé
2024-07-03 14:06 ` [PATCH v4 2/2] tests/avocado: add test for default sbsa-ref cpu Marcin Juszkiewicz
2024-07-03 14:11 ` Philippe Mathieu-Daudé [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=6f231ac5-bbe1-44ab-9acf-37cddbc1ad6d@linaro.org \
--to=philmd@linaro.org \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=marcin.juszkiewicz@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
--cc=rad@semihalf.com \
--cc=wainersm@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).