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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Oct 4 19:30:28 CEST 2009


Author: aljeux
Date: 2009-10-04 19:30:27 +0200 (Sun, 04 Oct 2009)
New Revision: 8231

Modified:
   trunk/tests/func/Testing/SeleniumRemoteSuite.php
   trunk/tests/func/config.php.tests
Log:
Fix remote tests on centos52

Modified: trunk/tests/func/Testing/SeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/SeleniumRemoteSuite.php	2009-10-04 16:10:02 UTC (rev 8230)
+++ trunk/tests/func/Testing/SeleniumRemoteSuite.php	2009-10-04 17:30:27 UTC (rev 8231)
@@ -9,9 +9,10 @@
 		system("ssh root at centos52 'tar jxf fusionforge-*allinone.tar.bz2'");
 		system("ssh root at centos52 'cd fusionforge-*; FFORGE_RPM_REPO=http://buildbot.fusionforge.org/job/fusionforge-trunk-full/ws/build/packages/ FFORGE_DB=fforge FFORGE_USER=gforge FFORGE_ADMIN_USER=ffadmin FFORGE_ADMIN_PASSWORD=ffadmin ./install.sh centos52.local'");
 
-		system("ssh root at centos52 'mkdir -p /opt/tests/func'");
-		system("scp func/db_reload.php root at centos52:/opt/tests/func/");
-		system("scp func/config.php.tests root at centos52:/opt/tests/func/config.php");
+		system("scp -r ../tests root at centos52:/opt");
+//		system("ssh root at centos52 'mkdir -p /opt/tests/func'");
+//		system("scp func/db_reload.php root at centos52:/opt/tests/func/");
+//		system("scp func/config.php.tests root at centos52:/opt/tests/func/config.php");
 
 		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");
@@ -22,7 +23,7 @@
 
 	protected function tearDown()
 	{
-		system("cd scripts; ./stop_vm.sh centos52");
+		//system("cd scripts; ./stop_vm.sh centos52");
 	}
 }
 ?>

Modified: trunk/tests/func/config.php.tests
===================================================================
--- trunk/tests/func/config.php.tests	2009-10-04 16:10:02 UTC (rev 8230)
+++ trunk/tests/func/config.php.tests	2009-10-04 17:30:27 UTC (rev 8231)
@@ -24,7 +24,7 @@
 define('DB_NAME', 'fforge');
 define('DB_USER', 'gforge');
 define('DB_PASSWORD', '@@FFDB_PASS@@');
-define('DB_INIT_CMD', "ssh root at centos52 'cd /tmp; php db_reload.php'");
+define('DB_INIT_CMD', "ssh root at centos52 'cd /opt/tests/func; php db_reload.php'");
 
 // Enter true when file is configured.
 define('CONFIGURED', true);




More information about the Fusionforge-commits mailing list