render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

Blame 0001-tests-9pfs-Mark-local-tests-as-slow.patch

4b48a7
From 800fb9e15c9672c79862ab608fe8cc41513310c3 Mon Sep 17 00:00:00 2001
4b48a7
From: Greg Kurz <groug@kaod.org>
4b48a7
Date: Tue, 24 Nov 2020 08:43:43 +0100
4b48a7
Subject: [PATCH] tests/9pfs: Mark "local" tests as "slow"
4b48a7
4b48a7
The "local" tests can fail on some automated build systems as
4b48a7
reported here:
4b48a7
4b48a7
https://lists.nongnu.org/archive/html/qemu-devel/2020-11/msg05510.html
4b48a7
4b48a7
This will need to be investigated and addressed later. Let's go for a
4b48a7
workaround in the meantime : mark the "local" tests as "slow" so that
4b48a7
they aren't executed with a simple "make check" like in the case above.
4b48a7
4b48a7
Reported-by: Cole Robinson <crobinso@redhat.com>
4b48a7
Signed-off-by: Greg Kurz <groug@kaod.org>
4b48a7
---
4b48a7
 tests/qtest/virtio-9p-test.c | 9 +++++++++
4b48a7
 1 file changed, 9 insertions(+)
4b48a7
4b48a7
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c
4b48a7
index 21e340fa5f..92a498f249 100644
4b48a7
--- a/tests/qtest/virtio-9p-test.c
4b48a7
+++ b/tests/qtest/virtio-9p-test.c
4b48a7
@@ -1456,6 +1456,15 @@ static void register_virtio_9p_test(void)
4b48a7
 
4b48a7
 
4b48a7
     /* 9pfs test cases using the 'local' filesystem driver */
4b48a7
+
4b48a7
+    /*
4b48a7
+     * XXX: Until we are sure that these tests can run everywhere,
4b48a7
+     * keep them as "slow" so that they aren't run with "make check".
4b48a7
+     */
4b48a7
+    if (!g_test_slow()) {
4b48a7
+        return;
4b48a7
+    }
4b48a7
+
4b48a7
     opts.before = assign_9p_local_driver;
4b48a7
     qos_add_test("local/config", "virtio-9p", pci_config,  &opts);
4b48a7
     qos_add_test("local/create_dir", "virtio-9p", fs_create_dir, &opts);