[Fusionforge-commits] r12922 - branches/Branch_5_1/tests/func

Alain Peyrat aljeux at fusionforge.org
Sat Mar 26 11:13:47 CET 2011


Author: aljeux
Date: 2011-03-26 11:13:46 +0100 (Sat, 26 Mar 2011)
New Revision: 12922

Modified:
   branches/Branch_5_1/tests/func/db_reload.php
Log:
Drop deprecated -no-restart option in db_reload.php & clean code.

Modified: branches/Branch_5_1/tests/func/db_reload.php
===================================================================
--- branches/Branch_5_1/tests/func/db_reload.php	2011-03-25 18:47:52 UTC (rev 12921)
+++ branches/Branch_5_1/tests/func/db_reload.php	2011-03-26 10:13:46 UTC (rev 12922)
@@ -61,11 +61,6 @@
 	exit(1);
 }
 
-$opt_restart = true;
-if (isset($argv[1]) && $argv[1] == '-no-restart') {
-	$opt_restart = false;
-}
-
 // Search location of fusionforge main directory (gforge).
 $forge_root = dirname(dirname(dirname(__FILE__))).'/src';
 if (!file_exists($forge_root)) {
@@ -92,10 +87,8 @@
 
 $session_hash = '000TESTSUITE000';
 
-//set_include_path(".:/opt/gforge/:/opt/gforge/www/include/:/etc/gforge/");
-
 require_once $forge_root.'/www/env.inc.php';
-require_once $gfwww.'include/pre.php';
+require_once $gfcommon.'include/pre.php';
 
 $files = glob(dirname(__FILE__)."/sql/*.sql");
 foreach ($files as $filename) {




More information about the Fusionforge-commits mailing list