[Fusionforge-commits] r12591 - trunk/tests/func/Testing

Christian Bayle cbayle at fusionforge.org
Mon Mar 7 11:32:18 CET 2011


Author: cbayle
Date: 2011-03-07 11:32:18 +0100 (Mon, 07 Mar 2011)
New Revision: 12591

Modified:
   trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
   trunk/tests/func/Testing/TarSeleniumRemoteSuite.php
Log:
dump db at the beginning of tests


Modified: trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2011-03-06 23:46:21 UTC (rev 12590)
+++ trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2011-03-07 10:32:18 UTC (rev 12591)
@@ -29,7 +29,7 @@
 
 		system("scp -p root@".HOST.":/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt");
 		system("ssh root@".HOST." '(echo [core];echo use_ssl=no) > /etc/gforge/config.ini.d/zzz-builbot.ini'");
-		system("ssh root@".HOST." 'php -f /usr/share/tests/func/db_reload.php'");
+		system("ssh root@".HOST." 'cd /usr/share/tests/func; CONFIGURED=true CONFIG_PHP=config.php.buildbot DB_NAME=".DB_NAME." php db_reload.php'");
 		system("ssh root@".HOST." 'su - postgres -c \"pg_dump -Fc gforge\" > /root/dump'") ;
 
 		// Install a fake sendmail to catch all outgoing emails.

Modified: trunk/tests/func/Testing/TarSeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/TarSeleniumRemoteSuite.php	2011-03-06 23:46:21 UTC (rev 12590)
+++ trunk/tests/func/Testing/TarSeleniumRemoteSuite.php	2011-03-07 10:32:18 UTC (rev 12591)
@@ -25,6 +25,8 @@
 
 		system("scp -p root@".HOST.":/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt");
 		system("ssh root@".HOST." '(echo [core];echo use_ssl=no) > /etc/gforge/config.ini.d/zzz-builbot.ini'");
+		system("ssh root@".HOST." 'cd /opt/tests/func; CONFIGURED=true CONFIG_PHP=config.php.buildbot DB_NAME=".DB_NAME." php db_reload.php'");
+                system("ssh root@".HOST." 'su - postgres -c \"pg_dump -Fc gforge\" > /root/dump'") ;
 
 		// Install a fake sendmail to catch all outgoing emails.
 		// system("ssh root@".HOST." 'perl -spi -e s#/usr/sbin/sendmail#/opt/tests/scripts/catch_mail.php# /etc/gforge/local.inc'");




More information about the Fusionforge-commits mailing list