mirror of
https://github.com/dynup/kpatch
synced 2025-02-02 10:11:36 +00:00
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:
parent
0d2ab160fe
commit
e19b0ad978
@ -131,6 +131,7 @@ run_load_test() {
|
|||||||
# test
|
# test
|
||||||
if ! $KPATCH load $module >> $LOG 2>&1; then
|
if ! $KPATCH load $module >> $LOG 2>&1; then
|
||||||
error "$prefix: kpatch load failed"
|
error "$prefix: kpatch load failed"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! ./$testprog >> $LOG 2>&1; then
|
if ! ./$testprog >> $LOG 2>&1; then
|
||||||
@ -139,6 +140,7 @@ run_load_test() {
|
|||||||
|
|
||||||
if ! $KPATCH unload $module >> $LOG 2>&1; then
|
if ! $KPATCH unload $module >> $LOG 2>&1; then
|
||||||
error "$prefix: kpatch unload failed"
|
error "$prefix: kpatch unload failed"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ./$testprog >> $LOG 2>&1; then
|
if ./$testprog >> $LOG 2>&1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user