Skip to content

Commit 6138952

Browse files
author
Denis Aleksandrov
committed
selftests/livepatch: Replace hardcoded module name with variable in test-callbacks.sh
JIRA: https://issues.redhat.com/browse/RHEL-85303 Replaced the hardcoded module name test_klp_callbacks_demo in the pre_patch_callback log message with the variable $MOD_LIVEPATCH. Signed-off-by: George Guo <guodongtai@kylinos.cn> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20241125112812.281018-2-dongtai.guo@linux.dev Signed-off-by: Petr Mladek <pmladek@suse.com> (cherry picked from commit 477fb06) Signed-off-by: Denis Aleksandrov <daleksan@redhat.com>
1 parent cab71a4 commit 6138952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/livepatch/test-callbacks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ $MOD_TARGET: ${MOD_TARGET}_init
259259
% modprobe $MOD_LIVEPATCH pre_patch_ret=-19
260260
livepatch: enabling patch '$MOD_LIVEPATCH'
261261
livepatch: '$MOD_LIVEPATCH': initializing patching transition
262-
test_klp_callbacks_demo: pre_patch_callback: vmlinux
262+
$MOD_LIVEPATCH: pre_patch_callback: vmlinux
263263
livepatch: pre-patch callback failed for object 'vmlinux'
264264
livepatch: failed to enable patch '$MOD_LIVEPATCH'
265265
livepatch: '$MOD_LIVEPATCH': canceling patching transition, going to unpatch

0 commit comments

Comments
 (0)