mirror of
https://github.com/dynup/kpatch
synced 2025-04-08 10:11:20 +00:00
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:
parent
baa1355447
commit
3478a85459
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user