]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/sysctl: Fix to load test_sysctl module
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 28 May 2020 14:52:26 +0000 (23:52 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 2 Jun 2020 16:26:46 +0000 (10:26 -0600)
commitff1f0a4ff4297054ad8e1626a6fedd0d22850a1c
tree389abc6daadf703f866aecb25ee1ca8f115bb9f8
parentdf697c799536bea274571076eeed23c58a3bf09d
selftests/sysctl: Fix to load test_sysctl module

Fix to load test_sysctl.ko module correctly.

sysctl.sh checks whether the test module is embedded (or loaded
already) or not at first, and if not, it returns skip error
instead of trying modprobe. Thus, there is no chance to load the
test_sysctl test module.

Instead, this removes that module embedded check and returns
skip error only if it ensures that there is no embedded test
module *and* no loadable test module.

This also avoid referring config file since that is not
installed.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/sysctl/sysctl.sh