Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -1
+1 -1
tools/testing/selftests/lib/prime_numbers.sh
··· 5 5 # Kselftest framework requirement - SKIP code is 4. 6 6 ksft_skip=4 7 7 8 - if ! /sbin/modprobe -q -r prime_numbers; then 8 + if ! /sbin/modprobe -q -n prime_numbers; then 9 9 echo "prime_numbers: module prime_numbers is not found [SKIP]" 10 10 exit $ksft_skip 11 11 fi