Whamcloud - gitweb
LU-4433 tests: fix mds-survey.sh to support multiple MDTs
[fs/lustre-release.git] / lustre / tests / test-framework.sh
index fed6964..3221f47 100755 (executable)
@@ -3378,12 +3378,14 @@ stopall() {
 }
 
 cleanup_echo_devs () {
-    local devs=$($LCTL dl | grep echo | awk '{print $4}')
+       trap 0
+       local dev
+       local devs=$($LCTL dl | grep echo | awk '{print $4}')
 
-    for dev in $devs; do
-        $LCTL --device $dev cleanup
-        $LCTL --device $dev detach
-    done
+       for dev in $devs; do
+               $LCTL --device $dev cleanup
+               $LCTL --device $dev detach
+       done
 }
 
 cleanupall() {