From: Richard Henderson <richard.henderson@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: mark.cave-ayland@ilande.co.uk
Subject: Re: [PATCH] tests/qtest: skip m48t59-test if the machine is not absent
Date: Fri, 3 May 2024 06:15:48 -0700 [thread overview]
Message-ID: <bc36cf5c-45d0-45a0-adb0-801b6ec61c7a@linaro.org> (raw)
In-Reply-To: <20240503085104.187538-1-pbonzini@redhat.com>
On 5/3/24 01:51, Paolo Bonzini wrote:
> Together with the series at https://patchew.org/QEMU/20240423131612.28362-1-pbonzini@redhat.com/,
> this allows adding sparc-softmmu to the target list of the
> build-without-defaults CI job.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> tests/qtest/m48t59-test.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
s/absent/present/ in subject.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
>
> diff --git a/tests/qtest/m48t59-test.c b/tests/qtest/m48t59-test.c
> index b9cd209165a..605797ab785 100644
> --- a/tests/qtest/m48t59-test.c
> +++ b/tests/qtest/m48t59-test.c
> @@ -262,11 +262,12 @@ int main(int argc, char **argv)
> base_setup();
>
> g_test_init(&argc, &argv, NULL);
> -
> - if (g_test_slow()) {
> - /* Do not run this in timing-sensitive environments */
> - qtest_add_func("/rtc/bcd-check-time", bcd_check_time);
> + if (qtest_has_machine(base_machine)) {
> + if (g_test_slow()) {
> + /* Do not run this in timing-sensitive environments */
> + qtest_add_func("/rtc/bcd-check-time", bcd_check_time);
> + }
> + qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
> }
> - qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
> return g_test_run();
> }
prev parent reply other threads:[~2024-05-03 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 8:51 [PATCH] tests/qtest: skip m48t59-test if the machine is not absent Paolo Bonzini
2024-05-03 13:15 ` Richard Henderson [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=bc36cf5c-45d0-45a0-adb0-801b6ec61c7a@linaro.org \
--to=richard.henderson@linaro.org \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).