1
0
Fork 0

windows tests: configure an ssh UserKnownHostsFile

This commit is contained in:
Astro 2019-04-23 22:40:19 +02:00
parent d268883ca2
commit 333ac1476a
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,7 @@ let
in "${qemu_kvm}/bin/qemu-system-x86_64 ${argStr}"; in "${qemu_kvm}/bin/qemu-system-x86_64 ${argStr}";
# Pass empty config file to prevent ssh from failing to create ~/.ssh # Pass empty config file to prevent ssh from failing to create ~/.ssh
sshOpts = "-F /dev/null -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null"; sshOpts = "-F /dev/null -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=\$TMP/known_hosts";
ssh = cmd: '' ssh = cmd: ''
echo ssh windows '${cmd}' echo ssh windows '${cmd}'
${sshpass}/bin/sshpass -p${sshPassword} -- \ ${sshpass}/bin/sshpass -p${sshPassword} -- \

View File

@ -51,7 +51,6 @@ stdenv.mkDerivation {
echo "Wait for Windows to boot" echo "Wait for Windows to boot"
sleep 10 sleep 10
export HOME=`mktemp -d`
${ssh "ver"} ${ssh "ver"}
for pkg in ${artiqPkg}/noarch/artiq*.tar.bz2 ; do for pkg in ${artiqPkg}/noarch/artiq*.tar.bz2 ; do
${scp "\\$pkg" "artiq.tar.bz2"} ${scp "\\$pkg" "artiq.tar.bz2"}