Skip to content

Commit

Permalink
Print ddev logs if command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jul 27, 2023
1 parent 39cada8 commit d795245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ teardown() {
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
if ddev restart; then
if ! ddev restart; then
ddev logs -s n8n
fi
health_checks
Expand All @@ -38,7 +38,7 @@ teardown() {
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get netz98/ddev-n8n with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get netz98/ddev-n8n
if ddev restart >/dev/null; then
if ! ddev restart >/dev/null; then
ddev logs -s n8n
fi
health_checks
Expand Down

0 comments on commit d795245

Please sign in to comment.