summaryrefslogtreecommitdiffstats
path: root/tools/scripts
diff options
context:
space:
mode:
authorJoe Lawrence2019-07-24 22:05:58 +0200
committerShuah Khan2019-07-24 22:17:46 +0200
commit527d37e9e575bc0e9024de9b499385e7bb31f1ad (patch)
tree2ff06b3557d70c031cc76f67f9ff3dae0f9dc4b8 /tools/scripts
parentselftests: mlxsw: Fix typo in qos_mc_aware.sh (diff)
downloadkernel-qcow2-linux-527d37e9e575bc0e9024de9b499385e7bb31f1ad.tar.gz
kernel-qcow2-linux-527d37e9e575bc0e9024de9b499385e7bb31f1ad.tar.xz
kernel-qcow2-linux-527d37e9e575bc0e9024de9b499385e7bb31f1ad.zip
selftests/livepatch: add test skip handling
Add a skip() message function that stops the test, logs an explanation, and sets the "skip" return code (4). Before loading a livepatch self-test kernel module, first verify that we've built and installed it by running a 'modprobe --dry-run'. This should catch a few environment issues, including !CONFIG_LIVEPATCH and !CONFIG_TEST_LIVEPATCH. In these cases, exit gracefully with the new skip() function. Reported-by: Jiri Benc <jbenc@redhat.com> Suggested-by: Shuah Khan <shuah@kernel.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/scripts')
0 files changed, 0 insertions, 0 deletions