diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ce38f136d6b996fc4970e2f26de33986293fdba8..a7437dc7249b304a0dc9c171495b5183cc44895d 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5726,19 +5726,6 @@ test_140() { #bug-17379 } run_test 140 "Check reasonable stack depth (shouldn't LBUG) ====" -test_141() { - local ls - #define OBD_FAIL_MGC_PAUSE_PROCESS_LOG 0x903 - $LCTL set_param fail_loc=0x903 - # cancel_lru_locks mgc - does not work due to lctl set_param syntax - for ls in /proc/fs/lustre/ldlm/namespaces/MGC*/lru_size; do - echo "clear" > $ls - done - FAIL_ON_ERROR=true cleanup - FAIL_ON_ERROR=true setup -} -run_test 141 "umount should not race with any mgc requeue thread" - test_150() { local TF="$TMP/$tfile" @@ -5987,6 +5974,23 @@ test_212() { } run_test 212 "Sendfile test ============================================" +# +# tests that do cleanup/setup should be run at the end +# + +test_900() { + local ls + #define OBD_FAIL_MGC_PAUSE_PROCESS_LOG 0x903 + $LCTL set_param fail_loc=0x903 + # cancel_lru_locks mgc - does not work due to lctl set_param syntax + for ls in /proc/fs/lustre/ldlm/namespaces/MGC*/lru_size; do + echo "clear" > $ls + done + FAIL_ON_ERROR=true cleanup + FAIL_ON_ERROR=true setup +} +run_test 900 "umount should not race with any mgc requeue thread" + log "cleanup: ======================================================" check_and_cleanup_lustre if [ "$I_MOUNTED" != "yes" ]; then