diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-11 19:58:23 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-11 19:58:23 +0100 |
commit | dc3527288d6f82ab60cfbe24efeb0961130901b7 (patch) | |
tree | 4df30b822078140cec3646421c71208a4646bc4a /tests/test_common.sh | |
parent | fe999e3cdb244bef2bd425918bc874b0018e94aa (diff) | |
parent | e7c2288400ee78c3ef8c7a92128287c1eff67811 (diff) | |
download | debvm-dc3527288d6f82ab60cfbe24efeb0961130901b7.tar.gz |
Merge branch main into skip
Resolve conflicts in the documentation of debvm-create.
Diffstat (limited to 'tests/test_common.sh')
-rw-r--r-- | tests/test_common.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_common.sh b/tests/test_common.sh index f42a26a..cba9693 100644 --- a/tests/test_common.sh +++ b/tests/test_common.sh @@ -5,14 +5,3 @@ run_ssh() { test -n "${SSH_PORT:-}" && set -- -p "$SSH_PORT" "$@" ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l root "$@" } - -wait_ssh() { - wait_ssh_timeout=5 - wait_ssh_ts=$(sleepenh 0 || [ $? -eq 1 ]) - for _ in $(seq 30); do - run_ssh -o ConnectTimeout="$wait_ssh_timeout" "$@" echo success && return 0 - wait_ssh_ts=$(sleepenh "$wait_ssh_ts" "$wait_ssh_timeout" || [ $? -eq 1 ]) - done - echo "timeout reached" >&2 - return 1 -} |