From 7ecdba7387f8031d97d222ba2eb4fbfaf846c709 Mon Sep 17 00:00:00 2001 From: Jeff Lindsay Date: Sun, 30 Jun 2013 02:27:36 -0500 Subject: [PATCH] poor man's retry --- tests/test_deploy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_deploy b/tests/test_deploy index 3c3b3a2a0..ad5eda36d 100755 --- a/tests/test_deploy +++ b/tests/test_deploy @@ -13,5 +13,9 @@ git commit -m 'initial commit' REPO="test-$(basename $APP)-$RANDOM" git remote add target git@$TARGET:$REPO git push target master +URL=$(ssh dokku@$TARGET url $REPO) sleep 2 -./check_deploy "$(ssh dokku@$TARGET url $REPO)" && echo "-----> Deploy success!" \ No newline at end of file +./check_deploy $URL && echo "-----> Deploy success!" || { + sleep 4 + ./check_deploy $URL && echo "-----> Deploy success!" +} \ No newline at end of file