[Fusionforge-commits] r11538 - trunk/tests/func/Testing

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sun Nov 14 21:09:34 CET 2010


Author: aljeux
Date: 2010-11-14 21:09:34 +0100 (Sun, 14 Nov 2010)
New Revision: 11538

Modified:
   trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
Log:
RPM tests: Try to save/restore yum timedhosts file to use the same download servers (proxy caching)

Modified: trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php
===================================================================
--- trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2010-11-14 18:16:53 UTC (rev 11537)
+++ trunk/tests/func/Testing/RPMSeleniumRemoteSuite.php	2010-11-14 20:09:34 UTC (rev 11538)
@@ -21,8 +21,14 @@
 
 		sleep(5);
 		
+		if (is_file("/tmp/timedhosts.txt")) {
+			system("scp -p /tmp/timedhosts.txt root@".HOST.":/var/cache/yum/timedhosts.txt");
+		}
+
 		system("ssh root@".HOST." 'yum install -y fusionforge fusionforge-plugin-scmsvn fusionforge-plugin-online_help fusionforge-plugin-extratabs fusionforge-plugin-ldapextauth fusionforge-plugin-scmgit fusionforge-plugin-blocks'");
 
+		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#/usr/share/tests/scripts/catch_mail.php# /etc/gforge/local.inc'");
 	}




More information about the Fusionforge-commits mailing list