X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=076faa7be7c1fe7dea8fdf9ec1e261fcbb690679;hb=3402e6c6517cc15f159b19bf4462279285cd83f2;hp=81a5832320b9b48d2774d2ec62fb0163ffc55619;hpb=04190b5f6540c8c6adb8f931ba133fc9683fe641;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 81a5832..076faa7 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,45 +1,10 @@ -#!/bin/sh -LOOP0=/dev/loop0 -LOOP1=/dev/loop1 +#!/bin/bash +export PATH=`dirname $0`/../utils:$PATH +NAME=${NAME:-local} -if [ ! -e $LOOP0 ]; then - echo $LOOP0 'doesnt exist: (not) using devfs?' - exit -fi +LUSTRE=${LUSTRE:-`dirname $0`/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -umount /mnt/obd - -rmmod llight -rmmod mdc -/usr/src/obd/utils/obdctl <