Quellcode durchsuchen

test: port r5833 from kamailio

Henning Westerholt vor 16 Jahren
Ursprung
Commit
030e80b538
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      test/unit/3.sh

+ 5 - 4
test/unit/3.sh

@@ -19,8 +19,9 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-# Needs a mysql database, the root user password must be given
-# in the file 'dbrootpw' in the test directory
+# Needs a mysql database, the root user password must be assigned to
+# the 'PW' variable in the file 'dbrootpw' in the test directory, e.g.:
+# PW=sql_root_passwd
 
 source include/common
 
@@ -46,7 +47,7 @@ sed -i "s/TEST=\"false\"/TEST=\"true\"/g" $DBCTL
 
 # set the mysql root password
 cp $DBCTL.mysql $DBCTL.mysql.bak
-sed -i "s/#PW=""/PW="$PW"/g" $DBCTL.mysql
+sed -i "s/#PW=\"\"/PW=\"$PW\"/g" $DBCTL.mysql
 
 ./$DBCTL create $tmp_name > /dev/null
 ret=$?
@@ -62,4 +63,4 @@ mv $DBCTL.mysql.bak $DBCTL.mysql
 mv $DBCTL.bak $DBCTL
 
 cd ../test
-exit $ret
+exit $ret