File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 30
30
uses : taiki-e/install-action@cargo-llvm-cov
31
31
- run : |
32
32
# Wait for startup of openssh-server
33
- sleep 15
33
+ timeout 15 ./wait_for_sshd_start_up.sh
34
34
chmod 600 .test-key
35
35
mkdir /tmp/openssh-rs
36
36
ssh -i .test-key -v -p 2222 -l test-user localhost -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/openssh-rs/known_hosts whoami
Original file line number Diff line number Diff line change 30
30
- uses : actions/checkout@v2
31
31
- run : |
32
32
# Wait for startup of openssh-server
33
- sleep 15
33
+ timeout 15 ./wait_for_sshd_start_up.sh
34
34
chmod 600 .test-key
35
35
mkdir /tmp/openssh-rs
36
36
ssh -i .test-key -v -p 2222 -l test-user 127.0.0.1 -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/openssh-rs/known_hosts whoami
Original file line number Diff line number Diff line change 30
30
- uses : actions/checkout@v2
31
31
- run : |
32
32
# Wait for startup of openssh-server
33
+ timeout 15 ./wait_for_sshd_start_up.sh
33
34
sleep 15
34
35
chmod 600 .test-key
35
36
mkdir /tmp/openssh-rs
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euxo pipefail
4
+
5
+ until ssh-keyscan -p 2222 localhost; do
6
+ sleep 1
7
+ done
You can’t perform that action at this time.
0 commit comments