Whamcloud - gitweb
b=22402 new OBDFILTER_SURVEY test suite
[fs/lustre-release.git] / lustre / tests / test-framework.sh
index d7beffe..4947d7d 100644 (file)
@@ -1676,10 +1676,21 @@ stopall() {
     return 0
 }
 
+cleanup_echo_devs () {
+    local devs=$($LCTL dl | grep echo | awk '{print $4}')
+
+    for dev in $devs; do
+        $LCTL --device $dev cleanup
+        $LCTL --device $dev detach
+    done
+}
+
 cleanupall() {
     nfs_client_mode && return
 
     stopall $*
+    cleanup_echo_devs
+
     unload_modules
     cleanup_gss
 }