[Fusionforge-commits] r12402 - in trunk/tests/func: . Testing

Christian Bayle cbayle at fusionforge.org
Sun Feb 27 18:45:25 CET 2011


Author: cbayle
Date: 2011-02-27 18:45:25 +0100 (Sun, 27 Feb 2011)
New Revision: 12402

Modified:
   trunk/tests/func/Testing/SeleniumRemoteSuite.php
   trunk/tests/func/config.php.tests
Log:
use HOST instead of hardcoded host


Modified: trunk/tests/func/Testing/SeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/SeleniumRemoteSuite.php	2011-02-27 17:45:10 UTC (rev 12401)
+++ trunk/tests/func/Testing/SeleniumRemoteSuite.php	2011-02-27 17:45:25 UTC (rev 12402)
@@ -18,8 +18,8 @@
 
 		//system("scp /usr/share/php/PHPUnit/Extensions/SeleniumTestCase/*pend.php root at centos52:/opt/tests");
 		//system("scp /usr/share/php/PHPUnit/Extensions/SeleniumTestCase/phpunit_coverage.php root at centos52:/opt/gforge/www");
-		//system("ssh root at centos52 'perl -spi -e \'s!^auto_prepend_file.*!auto_prepend_file=/opt/tests/prepend.php!\' /etc/php.ini');
-		//system("ssh root at centos52 'perl -spi -e \'s!^auto_append_file.*!auto_append_file=/opt/tests/append.php!\' /etc/php.ini');
+		//system("ssh root@".HOST." 'perl -spi -e \'s!^auto_prepend_file.*!auto_prepend_file=/opt/tests/prepend.php!\' /etc/php.ini');
+		//system("ssh root@".HOST." 'perl -spi -e \'s!^auto_append_file.*!auto_append_file=/opt/tests/append.php!\' /etc/php.ini');
 
 	}
 

Modified: trunk/tests/func/config.php.tests
===================================================================
--- trunk/tests/func/config.php.tests	2011-02-27 17:45:10 UTC (rev 12401)
+++ trunk/tests/func/config.php.tests	2011-02-27 17:45:25 UTC (rev 12402)
@@ -13,6 +13,9 @@
 // Host where selenium-rc is running
 define ('SELENIUM_RC_HOST', '192.168.0.204');
 
+// The forge's hostname
+define ('HOST', getenv('HOST'));
+
 // URL to access the application
 define ('URL', 'http://centos52.local/');
 




More information about the Fusionforge-commits mailing list