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

Christian Bayle cbayle at fusionforge.org
Thu Mar 10 17:12:12 CET 2011


Author: cbayle
Date: 2011-03-10 17:12:11 +0100 (Thu, 10 Mar 2011)
New Revision: 12647

Modified:
   trunk/tests/func/db_reload.php
Log:
add test for fhs


Modified: trunk/tests/func/db_reload.php
===================================================================
--- trunk/tests/func/db_reload.php	2011-03-10 16:12:01 UTC (rev 12646)
+++ trunk/tests/func/db_reload.php	2011-03-10 16:12:11 UTC (rev 12647)
@@ -71,8 +71,11 @@
 if (!file_exists($forge_root)) {
 	$forge_root = dirname(dirname(dirname(__FILE__))).'/gforge';
 	if (!file_exists($forge_root)) {
-		print "ERROR: Unable to guess location of fusionforge main directory (gforge), aborting.\n";
-		exit(1);
+		$forge_root = '/usr/share/gforge';
+		if (!file_exists($forge_root)) {
+			print "ERROR: Unable to guess location of fusionforge main directory (gforge), aborting.\n";
+			exit(1);
+		}
 	}
 }
 




More information about the Fusionforge-commits mailing list