Whamcloud - gitweb
LU-6174 obd: perform proper division
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
index 82f2a17..454ed6e 100755 (executable)
@@ -1,26 +1,7 @@
-#!/bin/sh
+#!/bin/bash
 
-LCONF=${LCONF:-../utils/lconf}
-NAME=${NAME:-local}
-TMP=${TMP:-/tmp}
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
+. $LUSTRE/tests/test-framework.sh
+init_test_env $@
 
-config=$NAME.xml
-mkconfig=./$NAME.sh
-
-if [ ! -f $config ]; then
-   sh $mkconfig $config || exit 1
-fi
-
-sync; sleep 2; sync
-${LCONF} --cleanup --dump $TMP/debug $config
-LEAK=`dmesg | grep -v " 0 bytes" | grep leaked`
-if [ "$LEAK" ]; then
-       echo "$LEAK" 1>&2
-       mv $TMP/debug $TMP/debug.`date +%s`
-       #exit -1
-fi
-BUSY=`dmesg | grep -i destruct`
-if [ "$BUSY" ]; then
-       echo "$BUSY" 1>&2
-       #exit -2
-fi
+cleanupall -f