forked from M-Labs/nix-scripts
windows tests: configure an ssh UserKnownHostsFile
This commit is contained in:
parent
d268883ca2
commit
333ac1476a
|
@ -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} -- \
|
||||||
|
|
|
@ -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"}
|
||||||
|
|
Loading…
Reference in New Issue