[sr-dev] git:master: test/unit: fixes for unit 17 (db_berkeley)

Daniel-Constantin Mierla miconda at gmail.com
Sun Oct 5 22:51:23 CEST 2014


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Oct  5 10:02:33 2014 +0200

test/unit: fixes for unit 17 (db_berkeley)

---

 test/unit/17.sh |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/test/unit/17.sh b/test/unit/17.sh
index a940dcd..c8e1661 100755
--- a/test/unit/17.sh
+++ b/test/unit/17.sh
@@ -46,11 +46,14 @@ sed -i'' -e "s/# INSTALL_DBUID_TABLES=ask/INSTALL_DBUID_TABLES=yes/g" $CTLRC
 cp $DBCTL $DBCTL.bak
 sed -i'' -e "s/TEST=\"false\"/TEST=\"true\"/g" $DBCTL
 
+CRT_DIR=`pwd`
+cd $CTL_DIR
 $DBCTL create $tmp_name > /dev/null
 ret=$?
+cd $CRT_DIR
 
 if [ "$ret" -eq 0 ] ; then
-	$BIN -w . -f $CFG > /dev/null
+	$BIN -w . -f $CFG -a no > /dev/null
 	ret=$?
 fi ;
 
@@ -58,7 +61,9 @@ sleep 1
 $KILL
 
 # cleanup
+cd $CTL_DIR
 $DBCTL drop $tmp_name > /dev/null
+cd $CRT_DIR
 mv $CTLRC.bak $CTLRC
 mv $DBCTL.bak $DBCTL
 




More information about the sr-dev mailing list