From 5a22dd3c5c2fdd35a1deacfecd74cce422450418 Mon Sep 17 00:00:00 2001 From: Roland Mas Date: Thu, 29 Nov 2012 16:16:16 +0100 Subject: [PATCH] Backport from master: setup SSH key and host checking for testing --- tests/scripts/fusionforge-build-and-test-deb.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/scripts/fusionforge-build-and-test-deb.sh b/tests/scripts/fusionforge-build-and-test-deb.sh index cbe36c2222..35e423de8d 100755 --- a/tests/scripts/fusionforge-build-and-test-deb.sh +++ b/tests/scripts/fusionforge-build-and-test-deb.sh @@ -126,6 +126,17 @@ echo "Run phpunit test on $HOST in $FORGE_HOME" ssh root@$HOST "apt-get -y install xfonts-base vnc4server ; mkdir -p /root/.vnc" ssh root@$HOST "cat > /root/.vnc/xstartup ; chmod +x /root/.vnc/xstartup" <> .ssh/authorized_keys +fi +if ! grep -q StrictHostKeyChecking .ssh/config ; then + echo StrictHostKeyChecking no >> .ssh/config +fi + : > /root/phpunit.exitcode $FORGE_HOME/tests/scripts/phpunit.sh DEBDebian70Tests.php &> /var/log/phpunit.log & echo \$! > /root/phpunit.pid @@ -136,6 +147,7 @@ ssh root@$HOST vncpasswd <