[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 03/16] tests/9pfs: Force removing of local 9pfs test directory
From: |
Christian Schoenebeck |
Subject: |
[PULL v2 03/16] tests/9pfs: Force removing of local 9pfs test directory |
Date: |
Fri, 30 Oct 2020 13:46:34 +0100 |
From: Greg Kurz <groug@kaod.org>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qtest/libqos/virtio-9p.c b/tests/qtest/libqos/virtio-9p.c
index 8459a3ee58..580ad09a2f 100644
--- a/tests/qtest/libqos/virtio-9p.c
+++ b/tests/qtest/libqos/virtio-9p.c
@@ -67,7 +67,7 @@ static void create_local_test_dir(void)
static void 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 */
--
2.20.1
- [PULL v2 00/16] 9p queue (previous 2020-10-23), Christian Schoenebeck, 2020/10/30
- [PULL v2 01/16] tests/9pfs: fix test dir for parallel tests, Christian Schoenebeck, 2020/10/30
- [PULL v2 02/16] tests/9pfs: fix coverity error in create_local_test_dir(), Christian Schoenebeck, 2020/10/30
- [PULL v2 03/16] tests/9pfs: Force removing of local 9pfs test directory,
Christian Schoenebeck <=
- [PULL v2 04/16] tests/9pfs: Factor out do_version() helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 05/16] tests/9pfs: Set alloc in fs_create_dir(), Christian Schoenebeck, 2020/10/30
- [PULL v2 06/16] tests/9pfs: Factor out do_attach() helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 07/16] tests/9pfs: Turn fs_readdir_split() into a helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 08/16] tests/9pfs: Turn fs_mkdir() into a helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 09/16] tests/9pfs: simplify do_mkdir(), Christian Schoenebeck, 2020/10/30
- [PULL v2 10/16] tests/9pfs: add local Tunlinkat directory test, Christian Schoenebeck, 2020/10/30
- [PULL v2 11/16] tests/9pfs: add local Tlcreate test, Christian Schoenebeck, 2020/10/30
- [PULL v2 12/16] tests/9pfs: add local Tunlinkat file test, Christian Schoenebeck, 2020/10/30
- [PULL v2 13/16] tests/9pfs: add local Tsymlink test, Christian Schoenebeck, 2020/10/30