Whamcloud - gitweb
LU-15461 test: add pool quota check 37/52737/2
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 19 Oct 2023 05:29:35 +0000 (13:29 +0800)
committerHongchao Zhang <hongchao@whamcloud.com>
Thu, 19 Oct 2023 05:29:35 +0000 (13:29 +0800)
The test_79 in sanity-quota needs quota pool support.
The removal of the "stop file" is also improved not to
trigger the test error if it has been deleted.

Change-Id: I4acd36e61faf4259c2821293ffb7913d4cca76bd
Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
lustre/tests/sanity-quota.sh

index c2a903a..8f49c14 100755 (executable)
@@ -5722,12 +5722,13 @@ 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"
+       do_facet mds1 "rm -f $stopf"
        wait $pid
 }
 run_test 79 "access to non-existed dt-pool/info doesn't cause a panic"