X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=076faa7be7c1fe7dea8fdf9ec1e261fcbb690679;hb=08aa217ce49aba1ded52e0f7adb8a607035123fd;hp=98f351036b2ab26985a2ca0fc22b2dec323487c0;hpb=a15fe9d88d5277f502c481252f469fabc71d2c42;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 98f3510..076faa7 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,14 +1,10 @@ -#!/bin/sh - -LCONF=${LCONF:-../utils/lconf} +#!/bin/bash +export PATH=`dirname $0`/../utils:$PATH NAME=${NAME:-local} -config=$NAME.xml -mkconfig=./$NAME.sh - -if [ ! -f $config -o $mkconfig -nt $config ]; then - sh $mkconfig $config || exit 1 -fi - -${LCONF} --cleanup --dump /tmp/debug $config +LUSTRE=${LUSTRE:-`dirname $0`/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} +cleanupall -f