aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2019-05-14 15:45:07 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 19:52:51 -0700
commita0edef79685c508fde517e6defac23b3ba60c422 (patch)
tree3cd06d3baf9d18d4d1a3e872166c52b350201bfd /lib
parenttools/testing/selftests/sysctl/sysctl.sh: ignore diff output on verify_diff_w() (diff)
downloadlinux-dev-a0edef79685c508fde517e6defac23b3ba60c422.tar.xz
linux-dev-a0edef79685c508fde517e6defac23b3ba60c422.zip
tools/testing/selftests/sysctl/sysctl.sh: allow graceful use on older kernels
On old kernels older new test knobs implemented on the test_sysctl module may not be available. This is expected, and the selftests test scripts should be able to run without failures on older kernels. Generalize a solution so that we test for each required test target file for each test by requiring each test description to annotate their respective test target file. If the target file does not exist, we skip the test gracefully. Link: http://lkml.kernel.org/r/20190320222831.8243-5-mcgrof@kernel.org Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Acked-by: Kees Cook <keescook@chromium.org> Cc: Eric Sandeen <sandeen@redhat.com> Cc: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions