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

Christian Bayle cbayle at fusionforge.org
Mon Mar 7 00:45:42 CET 2011


Author: cbayle
Date: 2011-03-07 00:45:41 +0100 (Mon, 07 Mar 2011)
New Revision: 12588

Modified:
   trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
Log:
Create and dump the database


Modified: trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2011-03-06 20:15:39 UTC (rev 12587)
+++ trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2011-03-06 23:45:41 UTC (rev 12588)
@@ -29,6 +29,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." '/usr/share/tests/func/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#/usr/share/tests/scripts/catch_mail.php# /etc/gforge/local.inc'");




More information about the Fusionforge-commits mailing list