Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa321569 authored by Shuah Khan (Samsung OSG)'s avatar Shuah Khan (Samsung OSG)
Browse files

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: default avatarShuah Khan (Samsung OSG) <shuah@kernel.org>
parent 9070ee31
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
# Kselftest framework requirement - SKIP code is 4.
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=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]"
	echo "prime_numbers: module prime_numbers is not found [SKIP]"
	exit $ksft_skip
	exit $ksft_skip
fi
fi