forked from M-Labs/nix-scripts
windows tests: make paths more explicit
This commit is contained in:
parent
4ec5ccb5fd
commit
dadb1a0b2e
@ -25,15 +25,15 @@ let
|
|||||||
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=$TMPDIR/known_hosts";
|
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=$TMPDIR/known_hosts";
|
||||||
ssh = cmd: ''
|
ssh = cmd: ''
|
||||||
echo "ssh windows \"${cmd}\""
|
echo "ssh windows \"${cmd}\""
|
||||||
sshpass -p${sshPassword} -- \
|
${sshpass}/bin/sshpass -p${sshPassword} -- \
|
||||||
ssh -np 2022 ${sshOpts} \
|
${openssh}/bin/ssh -np 2022 ${sshOpts} \
|
||||||
${sshUser}@localhost \
|
${sshUser}@localhost \
|
||||||
"${cmd}"
|
"${cmd}"
|
||||||
'';
|
'';
|
||||||
scp = src: target: ''
|
scp = src: target: ''
|
||||||
echo "Copy ${src} to ${target}"
|
echo "Copy ${src} to ${target}"
|
||||||
sshpass -p${sshPassword} -- \
|
${sshpass}/bin/sshpass -p${sshPassword} -- \
|
||||||
scp -P 2022 ${sshOpts} \
|
${openssh}/bin/scp -P 2022 ${sshOpts} \
|
||||||
"${src}" "${sshUser}@localhost:${target}"
|
"${src}" "${sshUser}@localhost:${target}"
|
||||||
'';
|
'';
|
||||||
installCondaPkg = pkg: ''
|
installCondaPkg = pkg: ''
|
||||||
|
@ -33,15 +33,15 @@ let
|
|||||||
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=\\$TMPDIR/known_hosts";
|
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=\\$TMPDIR/known_hosts";
|
||||||
ssh = cmd: ''
|
ssh = cmd: ''
|
||||||
echo "ssh windows \"${cmd}\""
|
echo "ssh windows \"${cmd}\""
|
||||||
sshpass -p${sshPassword} -- \
|
${sshpass}/bin/sshpass -p${sshPassword} -- \
|
||||||
ssh -np 2022 ${sshOpts} \
|
${openssh}/bin/ssh -np 2022 ${sshOpts} \
|
||||||
${sshUser}@localhost \
|
${sshUser}@localhost \
|
||||||
"${cmd}"
|
"${cmd}"
|
||||||
'';
|
'';
|
||||||
scp = src: target: ''
|
scp = src: target: ''
|
||||||
echo "Copy ${src} to ${target}"
|
echo "Copy ${src} to ${target}"
|
||||||
sshpass -p${sshPassword} -- \
|
${sshpass}/bin/sshpass -p${sshPassword} -- \
|
||||||
scp -P 2022 ${sshOpts} \
|
${openssh}/bin/scp -P 2022 ${sshOpts} \
|
||||||
"${src}" "${sshUser}@localhost:${target}"
|
"${src}" "${sshUser}@localhost:${target}"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user