]> git.baikalelectronics.ru Git - kernel.git/commit
ktest: pass KERNEL_VERSION to POST_KTEST
authorMasayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Thu, 9 May 2019 21:36:45 +0000 (17:36 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 10 May 2019 18:54:17 +0000 (14:54 -0400)
commit46611de0e044a45ea468f2b1629755161f301f4e
treecdf5871054dfdf95eada630f9da1ad5bba9898d5
parent993136f63c4aebca3147011310ec938814a4e442
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>
tools/testing/ktest/ktest.pl