[evolvis-commits] r16753: Tar tests: Try to save/ restore yum timedhosts file to use the same download servers (proxy caching )

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 01:38:29 CET 2011


Author: mirabilos
Date: 2011-03-01 01:38:29 +0100 (Tue, 01 Mar 2011)
New Revision: 16753

Modified:
   trunk/gforge_base/evolvisforge-5.1/tests/func/Testing/TarSeleniumRemoteSuite.php
Log:
Tar tests: Try to save/restore yum timedhosts file to use the same download servers (proxy caching)

Modified: trunk/gforge_base/evolvisforge-5.1/tests/func/Testing/TarSeleniumRemoteSuite.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Testing/TarSeleniumRemoteSuite.php	2011-03-01 00:38:27 UTC (rev 16752)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Testing/TarSeleniumRemoteSuite.php	2011-03-01 00:38:29 UTC (rev 16753)
@@ -12,8 +12,15 @@
 
 		system("scp ../../build/packages/fusionforge-*.tar.bz2 root at centos52:");
 		system("ssh root at centos52 'tar jxf fusionforge-*.tar.bz2'");
+
+		if (is_file("/tmp/timedhosts.txt")) {
+			system("scp -p /tmp/timedhosts.txt root@".HOST.":/var/cache/yum/timedhosts.txt");
+		}
+
 		system("ssh root at centos52 'cd fusionforge-*; FFORGE_RPM_REPO=http://buildbot.fusionforge.org/job/fusionforge-trunk-build-and-test-rpm/ws/build/packages/ FFORGE_DB=fforge FFORGE_USER=gforge FFORGE_ADMIN_USER=ffadmin FFORGE_ADMIN_PASSWORD=ffadmin ./install.sh centos52.local'");
 
+		system("scp -p root@".HOST.":/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt");
+
 		// Install a fake sendmail to catch all outgoing emails.
 		system("ssh root@".HOST." 'perl -spi -e s#/usr/sbin/sendmail#/opt/tests/scripts/catch_mail.php# /etc/gforge/local.inc'");
 	}



More information about the evolvis-commits mailing list