mirror of
https://github.com/dynup/kpatch
synced 2025-01-30 00:32:44 +00:00
integration/centos-7: reverse unload in multiple.test
Livepatch requires modules to be unloaded in reverse order. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
c39a48a606
commit
992ea01625
@ -33,7 +33,8 @@ for mod in "${modules[@]}"; do
|
||||
$SCRIPTDIR/$testprog || die "$SCRIPTDIR/$testprog failed after loading modules"
|
||||
done
|
||||
|
||||
for mod in "${modules[@]}"; do
|
||||
for ((idx=${#modules[@]}-1 ; idx>=0 ; idx--)); do
|
||||
mod=${modules[idx]}
|
||||
$KPATCH unload $mod
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user