Przeglądaj źródła

test: small fix in module check, return success when found in the first dir

Henning Westerholt 16 lat temu
rodzic
commit
1d16649399
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      test/unit/include/require

+ 2 - 0
test/unit/include/require

@@ -34,6 +34,8 @@ function check_module() {
 
 	if ! (test -e $SR_DIR/modules_k/$1/$1.so) ; then
 		echo "$SR_DIR/modules_k/$1/$1.so not found, try $SR_DIR/modules"
+	else
+		return 0
 	fi;
 	if ! (test -e $SR_DIR/modules/$1/$1.so) ; then
 		echo "$SR_DIR/modules/$1/$1.so not found, not run"