Commit 3eba2a15 authored by David Galloway's avatar David Galloway Committed by Guillaume Abrioux
Browse files

tests: Retry generating SSH vagrant config. Also add some debug.

Signed-off-by: default avatarDavid Galloway <>
parent 8dbee998
......@@ -11,4 +11,22 @@ if [ $# -eq 0 ]
cd "$path"
vagrant ssh-config > vagrant_ssh_config
# Let's print vagrant status for debug purposes and to give the VMs a second to
# settle before asking vagrant for SSH config.
vagrant status || true
until [ "$n" -ge 5 ]
vagrant ssh-config > vagrant_ssh_config && break
echo "\`vagrant ssh-config\` failed. Retrying."
sleep 3
if [ "$n" -eq 5 ]; then
echo "\`vagrant ssh-config\` failed 5 times. This is a fatal error."
cat vagrant_ssh_config
exit 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment