linux/tools/testing/selftests/pstore
Shuah Khan (Samsung OSG) c22a9ad9d0 selftests: pstore: return Kselftest Skip code for skipped tests
[ Upstream commit 856e7c4b61 ]

When pstore_post_reboot test gets skipped because of unmet dependencies
and/or unsupported configuration, it returns 0 which is treated as a pass
by the Kselftest framework. This leads to false positive result even when
the test could not be run.

Change it to return kselftest skip code when a test gets skipped to clearly
report that the test could not be run.

Kselftest framework SKIP code is 4 and the framework prints appropriate
messages to indicate that the test is skipped.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-24 13:26:54 +02:00
..
common_tests selftests/pstore: add pstore test scripts going with reboot 2015-10-15 20:00:32 -06:00
Makefile selftests/pstore: add pstore test scripts going with reboot 2015-10-15 20:00:32 -06:00
pstore_crash_test selftests/pstore: add pstore test scripts going with reboot 2015-10-15 20:00:32 -06:00
pstore_post_reboot_tests selftests: pstore: return Kselftest Skip code for skipped tests 2018-08-24 13:26:54 +02:00
pstore_tests