X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllechocleanup.sh;h=22d7550f2b07d0a20b18584d515140be4d93bcea;hb=1a2c28a865396a50b8fb30c696857110d5a7ca9d;hp=de4b35da9881829038ff8664caa4fd5b4fa56563;hpb=2bc269cffb5d92d3023c4695bbda6da2c282f003;p=fs%2Flustre-release.git diff --git a/lustre/tests/llechocleanup.sh b/lustre/tests/llechocleanup.sh index de4b35d..22d7550 100755 --- a/lustre/tests/llechocleanup.sh +++ b/lustre/tests/llechocleanup.sh @@ -1,10 +1,15 @@ #!/bin/sh LCONF=../utils/lconf +NAME=${NAME:-echo} +TMP=${TMP:-/tmp} -if [ -f echo.xml ]; then - ${LCONF} --cleanup echo.xml -else - echo "no echo.xml found" +config=$NAME.xml +mkconfig=$NAME.sh + +if [ ! -f $config ]; then + sh $mkconfig $config || exit 1 fi +${LCONF} --cleanup $NAME.xml +