diff options
author | Joe Lawrence <[email protected]> | 2019-07-24 16:05:58 -0400 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2019-07-24 14:17:46 -0600 |
commit | 527d37e9e575bc0e9024de9b499385e7bb31f1ad (patch) | |
tree | 2ff06b3557d70c031cc76f67f9ff3dae0f9dc4b8 /lib/mpi/mpi-internal.h | |
parent | 2e05ec4834f9bb7fe3575e4c48acebebfa1e24d9 (diff) |
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 <[email protected]>
Suggested-by: Shuah Khan <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Joe Lawrence <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions