Skip to content

Commit

Permalink
wait for remote closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
gsauthof committed Dec 22, 2024
1 parent 0eda6eb commit 443e3a8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/unlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ if [ "$n" -ne 1 ]; then
exit 1
fi

$ssh root@"$guest" systemd-tty-ask-password-agent < pw.log



set +e
timeout 30 $ssh root@"$guest" 'systemd-tty-ask-password-agent; sleep 60' < pw.log
r=$?
set -e
if [ $r = 124 ]; then
echo 'Unlock timed out' >&2
exit 1
fi
exit 0

0 comments on commit 443e3a8

Please sign in to comment.