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:
Artem Savkov 2019-01-11 11:46:08 +01:00
parent c39a48a606
commit 992ea01625

View File

@ -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