3 LUSTRE=${LUSTRE:-$(dirname $0)/..}
4 . $LUSTRE/tests/test-framework.sh
10 MGS=$($LCTL dl | awk '/mgs/ { print $4 }')
11 [ -z "$MGS" ] && echo "$0: SKIP: no MGS available, skipping llog test" && exit 0
13 load_module obdclass/llog_test || exit 1
14 $LCTL modules > $TMP/ogdb-$(hostname)
15 echo "NOW reload debugging syms.."
18 # Using ignore_errors will allow lctl to cleanup even if the test fails.
19 eval "$LCTL <<-EOF || RC=2
20 attach llog_test llt_name llt_uuid
27 rmmod -v llog_test || RC2=3
28 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2