Explorar el Código

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

Henning Westerholt hace 16 años
padre
commit
1d16649399
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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"