Skip to content
Snippets Groups Projects
Commit 42f4fafd authored by Andreas Dilger's avatar Andreas Dilger
Browse files

At least make some effort to detect errors in llog testing.

parent 9cff004f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
insmod ../obdclass/llog_test.o PATH=`dirname $0`:`dirname $0`/../utils:$PATH
../utils/lctl modules > /r/tmp/ogdb-localhost.localdomain insmod ../obdclass/llog_test.o || exit 1
lctl modules > /r/tmp/ogdb-`hostname`
echo "NOW reload debugging syms.." echo "NOW reload debugging syms.."
# Using ignore_errors will allow lctl to cleanup even if the test RC=0
# fails. lctl <<EOT || RC=2
../utils/lctl <<EOF
ignore_errors
newdev newdev
attach llog_test llt_name llt_uuid attach llog_test llt_name llt_uuid
setup mds1 setup mds1
EOT
# Using ignore_errors will allow lctl to cleanup even if the test fails.
lctl <<EOC
cfg_device llt_name
ignore_errors
cleanup cleanup
detach detach
EOF EOC
rmmod llog_test rmmod llog_test || RC2=3
[ $RC -eq 0 -a "$RC2" ] && RC=$RC2
exit $RC
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment