Skip to content

Commit

Permalink
build: Start ssh-agent if it's not already running
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Oct 19, 2024
1 parent cfd149c commit d855a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions container/devshell/test-ssh-agent
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ cd "$(dirname "$0")"
# currently that is not what this tests: instead it's testing SSH from where this runs into a container, with an agent.

# Test that the local SSH Agent works (on the laptop/build server, where this script runs; NOT in container)
if [ -z "$SSH_AUTH_SOCK" ]; then
echo "Starting SSH Agent..."
eval "$(ssh-agent -s)"
fi
ssh-add -l

# TODO instead of copy/paste from ../sshd/test, share common test harness structure..
Expand Down

0 comments on commit d855a0a

Please sign in to comment.