Skip to content

Commit

Permalink
atlasexec: test migrate down command with exit-code (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Jan 15, 2025
1 parent f0115dd commit 6a5ad5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion atlasexec/mock-atlas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ fi
if [[ "$TEST_STDOUT" != "" ]]; then
echo -n $TEST_STDOUT
if [[ "$TEST_STDERR" == "" ]]; then
exit 0 # No stderr
# `migrate down` and `migrate lint` commands print result to stdout
# but the error code is set to 1.
exit ${TEST_EXIT_CODE:-0} # No stderr
fi
# In some cases, Atlas will write the error in stderr
# when if the command is partially successful.
Expand Down

0 comments on commit 6a5ad5c

Please sign in to comment.