X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=076faa7be7c1fe7dea8fdf9ec1e261fcbb690679;hb=c28933602a6971739cb5ec3a1e920409ff19b01e;hp=82f2a171e1f9bde7d3d88a91213f71a4c8bad049;hpb=7312616768bfed768ecc00ba20322c37568138d0;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 82f2a17..076faa7 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,26 +1,10 @@ -#!/bin/sh - -LCONF=${LCONF:-../utils/lconf} +#!/bin/bash +export PATH=`dirname $0`/../utils:$PATH NAME=${NAME:-local} -TMP=${TMP:-/tmp} - -config=$NAME.xml -mkconfig=./$NAME.sh -if [ ! -f $config ]; then - sh $mkconfig $config || exit 1 -fi +LUSTRE=${LUSTRE:-`dirname $0`/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -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