WSL2-Linux-Kernel/tools/testing/selftests/sysctl
Shuah Khan (Samsung OSG) c7db6ffb83 selftests: sysctl: return Kselftest Skip code for skipped tests
When sysctl test is skipped because of unmet dependencies and/or
unsupported configuration, it exits with error which is treated as
a fail by the Kselftest framework. This leads to false negative 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.

Changed return code to kselftest skip code in skip error legs that check
requirements and module probe test error leg.

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>
2018-06-18 09:11:09 -06:00
..
Makefile test_sysctl: add generic script to expand on tests 2017-07-12 16:26:00 -07:00
config test_sysctl: add dedicated proc sysctl test driver 2017-07-12 16:26:00 -07:00
sysctl.sh selftests: sysctl: return Kselftest Skip code for skipped tests 2018-06-18 09:11:09 -06:00