From e264461bd19785ca1f651faecee0aca83c19835c Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Thu, 12 Oct 2023 18:32:29 +0800 Subject: [PATCH] LU-15461 test: add pool quota check 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. Lustre-change: https://review.whamcloud.com/52737 Lustre-commit: TBD (from a4b3cd91ae157a63644350769ebb248f21dd6eac) Test-Parameters: trivial testlist=sanity-quota Signed-off-by: Hongchao Zhang Change-Id: I4acd36e61faf4259c2821293ffb7913d4cca76bd Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52659 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity-quota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index b5dabc5..5a0fac8 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -5548,12 +5548,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" -- 1.8.3.1