From 890ba99255db27be63894594652aa331cb6e6f24 Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 3 Dec 2008 16:45:57 +0000 Subject: [PATCH] Branch HEAD b=17371 i=Andreas Dilger move the cleanup/setup test to the end of the series --- lustre/tests/sanity.sh | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ce38f13..a7437dc 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 -- 1.8.3.1