extended-tests: explicitly pass ssh UserKnownHostsFile

This commit is contained in:
Astro 2019-06-12 00:07:27 +02:00
parent 0f33ddf0d7
commit f7926ccddf

View File

@ -96,7 +96,11 @@ in
LOCKCTL=$(mktemp -d) LOCKCTL=$(mktemp -d)
mkfifo $LOCKCTL/lockctl mkfifo $LOCKCTL/lockctl
cat $LOCKCTL/lockctl | ${pkgs.openssh}/bin/ssh rpi-1 'flock /tmp/board_lock-kc705-1 -c "echo Ok; cat"' | ( cat $LOCKCTL/lockctl | ${pkgs.openssh}/bin/ssh \
-o UserKnownHostsFile=$HOME/.ssh/known_hosts \
rpi-1 \
'flock /tmp/board_lock-kc705-1 -c "echo Ok; cat"' \
| (
# End remote flock via FIFO # End remote flock via FIFO
atexit_unlock() { atexit_unlock() {
echo > $LOCKCTL/lockctl echo > $LOCKCTL/lockctl