qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/qtest: skip m48t59-test if the machine is not absent


From: Richard Henderson
Subject: Re: [PATCH] tests/qtest: skip m48t59-test if the machine is not absent
Date: Fri, 3 May 2024 06:15:48 -0700
User-agent: Mozilla Thunderbird

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();
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]