]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tests/9pfs: Mark "local" tests as "slow"
authorGreg Kurz <groug@kaod.org>
Tue, 24 Nov 2020 07:43:43 +0000 (08:43 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 24 Nov 2020 11:44:25 +0000 (12:44 +0100)
The "local" tests can fail on some automated build systems as
reported here:

https://lists.nongnu.org/archive/html/qemu-devel/2020-11/msg05510.html

This will need to be investigated and addressed later. Let's go for a
workaround in the meantime : mark the "local" tests as "slow" so that
they aren't executed with a simple "make check" like in the case above.

Reported-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <160620382310.1423262.7364287092069513483.stgit@bahia.lan>
Signed-off-by: Greg Kurz <groug@kaod.org>
tests/qtest/virtio-9p-test.c

index 21e340fa5f4305e830206307e16ca28399a01e66..92a498f249257cb0a69a6b8fe6082a38b3a3ae36 100644 (file)
@@ -1456,6 +1456,15 @@ static void register_virtio_9p_test(void)
 
 
     /* 9pfs test cases using the 'local' filesystem driver */
+
+    /*
+     * XXX: Until we are sure that these tests can run everywhere,
+     * keep them as "slow" so that they aren't run with "make check".
+     */
+    if (!g_test_slow()) {
+        return;
+    }
+
     opts.before = assign_9p_local_driver;
     qos_add_test("local/config", "virtio-9p", pci_config,  &opts);
     qos_add_test("local/create_dir", "virtio-9p", fs_create_dir, &opts);