1
0
Fork 0

windows tests: make paths more explicit

This commit is contained in:
Astro 2019-04-11 15:26:44 +02:00 committed by Sébastien Bourdeauducq
parent 4ec5ccb5fd
commit dadb1a0b2e
2 changed files with 8 additions and 8 deletions

View File

@ -25,15 +25,15 @@ let
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=$TMPDIR/known_hosts";
ssh = cmd: ''
echo "ssh windows \"${cmd}\""
sshpass -p${sshPassword} -- \
ssh -np 2022 ${sshOpts} \
${sshpass}/bin/sshpass -p${sshPassword} -- \
${openssh}/bin/ssh -np 2022 ${sshOpts} \
${sshUser}@localhost \
"${cmd}"
'';
scp = src: target: ''
echo "Copy ${src} to ${target}"
sshpass -p${sshPassword} -- \
scp -P 2022 ${sshOpts} \
${sshpass}/bin/sshpass -p${sshPassword} -- \
${openssh}/bin/scp -P 2022 ${sshOpts} \
"${src}" "${sshUser}@localhost:${target}"
'';
installCondaPkg = pkg: ''

View File

@ -33,15 +33,15 @@ let
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=\\$TMPDIR/known_hosts";
ssh = cmd: ''
echo "ssh windows \"${cmd}\""
sshpass -p${sshPassword} -- \
ssh -np 2022 ${sshOpts} \
${sshpass}/bin/sshpass -p${sshPassword} -- \
${openssh}/bin/ssh -np 2022 ${sshOpts} \
${sshUser}@localhost \
"${cmd}"
'';
scp = src: target: ''
echo "Copy ${src} to ${target}"
sshpass -p${sshPassword} -- \
scp -P 2022 ${sshOpts} \
${sshpass}/bin/sshpass -p${sshPassword} -- \
${openssh}/bin/scp -P 2022 ${sshOpts} \
"${src}" "${sshUser}@localhost:${target}"
'';
in