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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed May 19 22:11:21 CEST 2010


Author: aljeux
Date: 2010-05-19 22:11:20 +0200 (Wed, 19 May 2010)
New Revision: 9756

Modified:
   trunk/tests/func/db_reload.php
Log:
auto upgrade-db if gforge.sql is not uptodate (in test suite)

Modified: trunk/tests/func/db_reload.php
===================================================================
--- trunk/tests/func/db_reload.php	2010-05-18 14:43:22 UTC (rev 9755)
+++ trunk/tests/func/db_reload.php	2010-05-19 20:11:20 UTC (rev 9756)
@@ -84,6 +84,7 @@
 	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 ".dirname(dirname(dirname(__FILE__)))."/gforge/db/gforge.sql &>/tmp/gforge-import.log");
+	system("php ".dirname(dirname(dirname(__FILE__)))."/gforge/db/upgrade-db.php &>/tmp/gforge-upgrade-db.log");
 } else {
 	print "Unsupported database type: ".DB_TYPE. "\n";
 	exit;




More information about the Fusionforge-commits mailing list