[Fusionforge-commits] r13740 - trunk/tests/scripts

Christian Bayle cbayle at fusionforge.org
Sat Jul 9 12:34:38 CEST 2011


Author: cbayle
Date: 2011-07-09 12:34:38 +0200 (Sat, 09 Jul 2011)
New Revision: 13740

Modified:
   trunk/tests/scripts/phpunit.sh
Log:
getenv DB_USER
keep all db reload in specific selenium log


Modified: trunk/tests/scripts/phpunit.sh
===================================================================
--- trunk/tests/scripts/phpunit.sh	2011-07-09 10:33:25 UTC (rev 13739)
+++ trunk/tests/scripts/phpunit.sh	2011-07-09 10:34:38 UTC (rev 13740)
@@ -22,7 +22,7 @@
 SELENIUM_RC_HOST=`hostname -f`
 HOST=`hostname -f`
 CONFIG_PHP=func/config.php
-export SELENIUM_RC_DIR WORKSPACE SELENIUM_RC_URL SELENIUM_RC_HOST HOST DB_NAME CONFIG_PHP
+export SELENIUM_RC_DIR WORKSPACE SELENIUM_RC_URL SELENIUM_RC_HOST HOST DB_NAME DB_USER CONFIG_PHP
 
 cat <<-EOF >tests/func/config.php
 <?php
@@ -38,9 +38,9 @@
 
 // Database connection parameters.
 define('DB_NAME', getenv('DB_NAME'));
-define('DB_USER', 'gforge');
+define('DB_USER', getenv('DB_USER'));
 define('DB_PASSWORD', '@@FFDB_PASS@@');
-define('DB_INIT_CMD', "/root/tests/func/db_reload.sh >/var/log/db_reload.log 2>/var/log/db_reload.errlog");
+define('DB_INIT_CMD', "/root/tests/func/db_reload.sh >>/var/log/db_reload_selenium.log 2>>/var/log/db_reload_selenium.errlog");
 
 // this should be an existing user of the forge together with its password
 // (the password should be different from 'myadmin')




More information about the Fusionforge-commits mailing list