test_sysctl: Add an option to prevent test skip
authorJoel Granados <j.granados@samsung.com>
Fri, 16 Jun 2023 08:59:19 +0000 (10:59 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Sun, 18 Jun 2023 09:32:54 +0000 (02:32 -0700)
commitec866cc6f8a90a65cd085377405c34f0f6d9ba60
tree1289bb2b31cc6aefc7bd1145e275214039e4bc79
parent35576438591e8d37c7651e6ff56f2e07c7f9615a
test_sysctl: Add an option to prevent test skip

Tests were being skipped because the target was not present. Add a flag
that controls whether to skip a test based on the presence of the target.
Actually skip tests in the test_case function with a "return" instead of
a "continue".

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
tools/testing/selftests/sysctl/sysctl.sh