Skip to content

Commit fa32156

Browse files
author
Shuah Khan (Samsung OSG)
committed
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>
1 parent 9070ee3 commit fa32156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/lib/prime_numbers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Kselftest framework requirement - SKIP code is 4.
66
ksft_skip=4
77

8-
if ! /sbin/modprobe -q -r prime_numbers; then
8+
if ! /sbin/modprobe -q -n prime_numbers; then
99
echo "prime_numbers: module prime_numbers is not found [SKIP]"
1010
exit $ksft_skip
1111
fi

0 commit comments

Comments
 (0)