]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: unmount the mountpoint just before exiting 51890/head
authorXiubo Li <xiubli@redhat.com>
Fri, 2 Jun 2023 09:24:14 +0000 (17:24 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 7 Jun 2023 07:23:01 +0000 (15:23 +0800)
Without this the qa test may fail by evicting the unresponsive
client after 300 seconds.

Fixes: https://tracker.ceph.com/issues/61394
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/test/fs/test_trim_caps.cc

index 11acabb0a585677122af5be630d2428858810984..5f6e1b4204a8d096ef43cd30b4ee658f423b5a7d 100644 (file)
@@ -46,7 +46,6 @@ int main(int argc, char *argv[])
                ret = ceph_rename(cmount, "2", "1");
                assert(ret >= 0);
 
-               ceph_unmount(cmount);
                printf("child exits\n");
        } else {
                ret = ceph_mkdirs(cmount, "1/2", 0755);
@@ -78,8 +77,10 @@ int main(int argc, char *argv[])
                ret = ceph_statx(cmount, ".", &stx, 0, 0);
                assert(ret >= 0);
 
-               printf("waiting for crash\n");
-        sleep(60);
+               printf("waiting for 60 seconds to see whether will it crash\n");
+               sleep(60);
+               printf("parent exits\n");
        }
+       ceph_unmount(cmount);
        return 0;
 }