integration/centos7: fix module prefixes

Modules were previously prefixed with either 'kpatch-' or 'livepatch-'
depending on which was used. This is no longer true and all modules are
now prefixed with "test-". Update test scripts accordingly.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2019-01-09 10:56:09 +01:00
parent baa1355447
commit 3478a85459
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if $(nm kpatch-gcc-static-local-var-4.ko | grep -q free_ioctx); then
if $(nm test-gcc-static-local-var-4.ko | grep -q free_ioctx); then
exit 1
else
exit 0

View File

@ -13,11 +13,11 @@ die() {
ko_to_test() {
tmp=${1%.ko}-LOADED.test
echo ${tmp#kpatch-}
echo ${tmp#test-}
}
# make sure any modules added here are disjoint
declare -a modules=(kpatch-cmdline-string.ko kpatch-meminfo-string.ko)
declare -a modules=(test-cmdline-string.ko test-meminfo-string.ko)
for mod in "${modules[@]}"; do
testprog=$(ko_to_test $mod)