diff options
author | Shuah Khan (Samsung OSG) <shuah@kernel.org> | 2018-05-30 20:27:13 +0300 |
---|---|---|
committer | Shuah Khan (Samsung OSG) <shuah@kernel.org> | 2018-05-31 06:32:55 +0300 |
commit | fa32156921daa5c175228e2cac7679d50efd6c52 (patch) | |
tree | 28d4a753ddeb07cd0a5ea2043f800b5c74155a3d /tools/testing/selftests/lib | |
parent | 9070ee31ab106464e0d89019a9c4df787179bf3e (diff) | |
download | linux-fa32156921daa5c175228e2cac7679d50efd6c52.tar.xz |
selftests: lib: fix prime_numbers module search and skip logic
prime_numbers modules search and skip logic removes the module instead
of searching for it. Fix it.
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Diffstat (limited to 'tools/testing/selftests/lib')
-rwxr-xr-x | tools/testing/selftests/lib/prime_numbers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/lib/prime_numbers.sh b/tools/testing/selftests/lib/prime_numbers.sh index 76602d4b050f..78e7483c8d60 100755 --- a/tools/testing/selftests/lib/prime_numbers.sh +++ b/tools/testing/selftests/lib/prime_numbers.sh @@ -5,7 +5,7 @@ # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 -if ! /sbin/modprobe -q -r prime_numbers; then +if ! /sbin/modprobe -q -n prime_numbers; then echo "prime_numbers: module prime_numbers is not found [SKIP]" exit $ksft_skip fi |