X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=076faa7be7c1fe7dea8fdf9ec1e261fcbb690679;hb=3402e6c6517cc15f159b19bf4462279285cd83f2;hp=674be92e8de6b6610d57c3ed8a1ed7792623d437;hpb=94c2ba8fc1b4f13c29231f84d18ac3b7ade2d5ed;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 674be92..076faa7 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,76 +1,10 @@ -#!/bin/sh +#!/bin/bash +export PATH=`dirname $0`/../utils:$PATH +NAME=${NAME:-local} -SRCDIR="`dirname $0`/" -. $SRCDIR/common.sh +LUSTRE=${LUSTRE:-`dirname $0`/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -TIME=`date +'%s'` - -$DBGCTL debug_kernel /tmp/debug.1.$TIME - -if mount | grep '/mnt/lustre'; then - umount /mnt/lustre || fail "cannot unmount" -fi - -killall acceptor -rmmod llite - -$OBDCTL <