[Fusionforge-commits] r10257 - trunk/tests/func

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Jul 16 17:39:21 CEST 2010


Author: lolando
Date: 2010-07-16 17:39:21 +0200 (Fri, 16 Jul 2010)
New Revision: 10257

Modified:
   trunk/tests/func/db_reload.php
Log:
Save database install/upgrade logs in /var/log again

Modified: trunk/tests/func/db_reload.php
===================================================================
--- trunk/tests/func/db_reload.php	2010-07-16 15:06:09 UTC (rev 10256)
+++ trunk/tests/func/db_reload.php	2010-07-16 15:39:21 UTC (rev 10257)
@@ -84,8 +84,8 @@
 	system("service postgresql restart 2>&1 >/dev/null");
 	system("su - postgres -c 'dropdb -q ".DB_NAME."'");
 	system("su - postgres -c 'createdb -q --encoding UNICODE ".DB_NAME."'");
-	system("psql -q -U".DB_USER." ".DB_NAME." -f /opt/gforge/db/gforge.sql");
-	system("php /opt/gforge/db/upgrade-db.php");
+	system("psql -q -U".DB_USER." ".DB_NAME." -f /opt/gforge/db/gforge.sql >> /var/log/gforge-import.log 2>&1");
+	system("php /opt/gforge/db/upgrade-db.php >> /var/log/gforge-upgrade-db.log 2>&1");
 } else {
 	print "Unsupported database type: ".DB_TYPE. "\n";
 	exit;




More information about the Fusionforge-commits mailing list