[Fusionforge-commits] r12642 - trunk/tests/scripts

Christian Bayle cbayle at fusionforge.org
Thu Mar 10 17:11:18 CET 2011


Author: cbayle
Date: 2011-03-10 17:11:18 +0100 (Thu, 10 Mar 2011)
New Revision: 12642

Modified:
   trunk/tests/scripts/fusionforge-build-and-test-rpm.sh
Log:
don't copy inexisting file


Modified: trunk/tests/scripts/fusionforge-build-and-test-rpm.sh
===================================================================
--- trunk/tests/scripts/fusionforge-build-and-test-rpm.sh	2011-03-10 16:11:07 UTC (rev 12641)
+++ trunk/tests/scripts/fusionforge-build-and-test-rpm.sh	2011-03-10 16:11:18 UTC (rev 12642)
@@ -71,7 +71,7 @@
 	scp -p /tmp/timedhosts.txt root@$HOST:/var/cache/yum/timedhosts.txt
 fi
 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"
-scp -p root@$HOST:/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt
+[ ! -e /tmp/timedhosts.txt ] || scp -p root@$HOST:/var/cache/yum/timedhosts.txt /tmp/timedhosts.txt
 ssh root@$HOST "cd /usr/share/tests/func; CONFIGURED=true CONFIG_PHP=config.php.buildbot DB_NAME=$DB_NAME php db_reload.php"
 ssh root@$HOST "su - postgres -c \"pg_dump -Fc $DB_NAME\" > /root/dump"
 # Install a fake sendmail to catch all outgoing emails.




More information about the Fusionforge-commits mailing list