]> git.baikalelectronics.ru Git - kernel.git/commit
tools/testing/selftests/sysctl/sysctl.sh: load module before testing for it
authorLuis Chamberlain <mcgrof@kernel.org>
Tue, 14 May 2019 22:45:01 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 02:52:51 +0000 (19:52 -0700)
commit7d21d8ab2d31fa1d16113a4f406dcada3b07d019
tree89c4e468be88296f2c2cfabedf3bcf641d0023ca
parentd4f1ad58d9ab602e379e652ff62c98e9fdc14461
tools/testing/selftests/sysctl/sysctl.sh: load module before testing for it

Currently the test script checks for the existence of the sysctl test
module's directory path prior to loading it.  We must first try to load
the module prior to checking for that path.  This fixes the order for
the load / test.

Link: http://lkml.kernel.org/r/20190320222831.8243-3-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>
tools/testing/selftests/sysctl/sysctl.sh