From 4701227564a4d5d5c1a4ef6159b86b84ada17cae Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 28 Jan 2023 15:37:02 -0500 Subject: [PATCH] tests: add more debugging output to deploy tests --- tests/test_deploy | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_deploy b/tests/test_deploy index 1ae817c68d9..fdc67866d59 100755 --- a/tests/test_deploy +++ b/tests/test_deploy @@ -10,9 +10,12 @@ BRANCH="${5:-master}" REMOTE="dokku@$TARGET" REPO="test-$(basename "$APP")-$RANDOM" +ssh "$REMOTE" events:on + destroy_app() { # shellcheck disable=SC2029 - echo "$REPO" | ssh "$REMOTE" apps:destroy "$REPO" + ssh "$REMOTE" apps:destroy "$REPO" --force + ssh "$REMOTE" events:off } failed() { @@ -58,7 +61,10 @@ if [[ "$SHOULD_FAIL" == true ]]; then exit 0 fi -URL=$(dokku url "$REPO")$FORWARDED_PORT +ssh "$REMOTE" events +ssh "$REMOTE" apps:list +# shellcheck disable=SC2029 +URL=$(ssh "$REMOTE" url "$REPO")$FORWARDED_PORT sleep 2 if (./check_deploy "$URL"); then echo "-----> Deploy success!"