[SR-Dev] git:master: test: small fix in module check, return success when found in the first dir

Henning Westerholt henning.westerholt at 1und1.de
Wed May 6 18:56:30 CEST 2009


Module: sip-router
Branch: master
Commit: 1d166493996698771a54daa1e7e788c2ee3d2749
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1d166493996698771a54daa1e7e788c2ee3d2749

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Wed May  6 18:52:36 2009 +0200

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

---

 test/unit/include/require |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/unit/include/require b/test/unit/include/require
index 80a1058..f94b877 100644
--- a/test/unit/include/require
+++ b/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"




More information about the sr-dev mailing list