Whamcloud - gitweb
LU-15179 tests: add trap cleanup_quota_test
authorSergey Cheremencev <sergey.cheremencev@hpe.com>
Wed, 2 Nov 2022 10:08:50 +0000 (18:08 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 4 Nov 2022 04:26:15 +0000 (04:26 +0000)
commit598a1e418559aeb4b24b67ea34ba77be6167c3b9
tree46e815e88f3bd6fd897c2d7d558e270219d38dca
parent1fe2a94dfb7f2eaa237ca37f55715a288a7cf9dc
LU-15179 tests: add trap cleanup_quota_test

Add stack_trap cleanup_quota_test to the tests that
use setup_quota_test. If a test fails without calling
cleanup_quota_test, it may cause later tests to fail
due to used space > 0.

Remove ${tdir}_dom, if exists, in cleanup_quota_test.
sanity-quota_75 doesn't remove test_dom directory.

Lustre-change: https://review.whamcloud.com/#/c/45418/
Lustre-commit: c44b2bea1bacc3cb9173353037cf3a616f13669f

Test-Parameters: trivial  testlist=sanity-quota
Fixes: a4fbe734("LU-14739 quota: nodemap squashed root cannot bypass quota")
Change-Id: Ife4fd499b427bee79f74a5e172d233fe6a83e240
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48705
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-quota.sh