Whamcloud - gitweb
EX-7342 test: remove extra cleanup and qp check
authorHongchao Zhang <hongchao@whamcloud.com>
Fri, 22 Sep 2023 03:22:17 +0000 (23:22 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 28 Sep 2023 08:45:48 +0000 (08:45 +0000)
The test_79 in sanity-quota needs quota pool support, and
the cleanup of the "stop file" is also included in the
stack_trap, then it is no need to to do it explicitly.

Test-Parameters: trivial
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: If86a1d0187b4b95d0c5e24f11f5f058280726e64
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52472
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-quota.sh

index 075c43d..e3d9489 100755 (executable)
@@ -5533,12 +5533,12 @@ test_79()
        local cmd="$LCTL get_param -n qmt.$FSNAME-QMT0000.dt-$qpool.info"
        local stopf=$TMP/$tfile
 
+       mds_supports_qp
        do_facet mds1 "touch $stopf"
        stack_trap "do_facet mds1 'rm -f $stopf'"
        do_facet mds1 "while [ -e $stopf ]; do $cmd &>/dev/null; done"&
        local pid=$!
        pool_add $qpool || error "pool_add failed"
-       do_facet mds1 "rm $stopf"
        wait $pid
 }
 run_test 79 "access to non-existed dt-pool/info doesn't cause a panic"