Skip to content

Commit

Permalink
Merge pull request #71 from shashank-boyapally/requirements-update
Browse files Browse the repository at this point in the history
Handled Exit status
  • Loading branch information
vishnuchalla authored Sep 13, 2024
2 parents 7219dc1 + 49fef76 commit 248893a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

run_cmd(){
echo "$@"
set +e
${@}
EXIT_CODE=$?
set -e

if [ $EXIT_CODE -eq 2 ]; then
echo "Exit code 2 encountered, regression detected, treating as success"
Expand Down

0 comments on commit 248893a

Please sign in to comment.