summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tpm2/test_space.sh
diff options
context:
space:
mode:
authorJoe Lawrence <joe.lawrence@redhat.com>2019-07-24 16:05:58 -0400
committerShuah Khan <skhan@linuxfoundation.org>2019-07-24 14:17:46 -0600
commit527d37e9e575bc0e9024de9b499385e7bb31f1ad (patch)
tree2ff06b3557d70c031cc76f67f9ff3dae0f9dc4b8 /tools/testing/selftests/tpm2/test_space.sh
parent2e05ec4834f9bb7fe3575e4c48acebebfa1e24d9 (diff)
downloadblackbird-op-linux-527d37e9e575bc0e9024de9b499385e7bb31f1ad.tar.gz
blackbird-op-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/testing/selftests/tpm2/test_space.sh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud