Skip to content

Commit cc2eb3a

Browse files
mizummrostedt
authored andcommitted
ktest: pass KERNEL_VERSION to POST_KTEST
For BLS, kernel entry is added by kernel-install command through POST_INSALL, for example, POST_INSTALL = ssh root@Test "/usr/bin/kernel-install \ add $KERNEL_VERSION /boot/vmlinuz-$KERNEL_VERSION" The entry is removed by kernel-install command and the kernel version is needed for the argument. Pass KERNEL_VERSION variable to POST_KTEST so that kernel-install command can remove the entry like as follows: POST_KTEST = ssh root@Test "/usr/bin/kernel-install remove $KERNEL_VERSION" Link: http://lkml.kernel.org/r/20190509213647.6276-5-msys.mizuma@gmail.com Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent ac24664 commit cc2eb3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4456,7 +4456,9 @@ sub cancel_test {
44564456
}
44574457

44584458
if (defined($final_post_ktest)) {
4459-
run_command $final_post_ktest;
4459+
4460+
my $cp_final_post_ktest = eval_kernel_version $final_post_ktest;
4461+
run_command $cp_final_post_ktest;
44604462
}
44614463

44624464
if ($opt{"POWEROFF_ON_SUCCESS"}) {

0 commit comments

Comments
 (0)