浏览代码

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>
Shuah Khan (Samsung OSG) 7 年之前
父节点
当前提交
fa32156921
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/testing/selftests/lib/prime_numbers.sh

+ 1 - 1
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