tests/9pfs: Force removing of local 9pfs test directory
authorGreg Kurz <groug@kaod.org>
Fri, 30 Oct 2020 12:46:34 +0000 (13:46 +0100)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Sun, 1 Nov 2020 18:44:29 +0000 (19:44 +0100)
No need to get a complaint from "rm" if some path disappeared for some
reason.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160406199444.312256.8319835906008559151.stgit@bahia.lan>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/qtest/libqos/virtio-9p.c

index 3671043108a19267db03889f62493b5767cf1dd8..be91662c6f04b05aa738d9a0aab8a16efcfb0e4a 100644 (file)
@@ -67,7 +67,7 @@ void virtio_9p_create_local_test_dir(void)
 void virtio_9p_remove_local_test_dir(void)
 {
     g_assert(local_test_path != NULL);
-    char *cmd = g_strdup_printf("rm -r '%s'\n", local_test_path);
+    char *cmd = g_strdup_printf("rm -fr '%s'\n", local_test_path);
     int res = system(cmd);
     if (res < 0) {
         /* ignore error, dummy check to prevent compiler error */