#!/bin/bash
-LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
-. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
-PATH=$(dirname $0):$LUSTRE/utils:$PATH
TMP=${TMP:-/tmp}
set -x
# Using ignore_errors will allow lctl to cleanup even if the test fails.
eval "$LCTL <<-EOF || RC=2
attach llog_test llt_name llt_uuid
+ ignore_errors
setup $MGS
device llt_name
- ignore_errors
cleanup
detach
EOF"