test: make load/unload errors fatal

No need to accumulate errors if the load or unload fails.  Leaving the
testprog failure non-fatal so that the test will then call unload to
clean up after itself.
This commit is contained in:
Josh Poimboeuf 2014-04-28 13:32:00 -05:00
parent 0d2ab160fe
commit e19b0ad978

View File

@ -131,6 +131,7 @@ run_load_test() {
# test
if ! $KPATCH load $module >> $LOG 2>&1; then
error "$prefix: kpatch load failed"
return
fi
if ! ./$testprog >> $LOG 2>&1; then
@ -139,6 +140,7 @@ run_load_test() {
if ! $KPATCH unload $module >> $LOG 2>&1; then
error "$prefix: kpatch unload failed"
return
fi
if ./$testprog >> $LOG 2>&1; then