Skip to content

Commit

Permalink
Show resources only in non-debug mode
Browse files Browse the repository at this point in the history
It may slow down debugging the tests, so let's not show resources whatsoever when in DEBUG mode
  • Loading branch information
hhorak authored and zmiklank committed Nov 21, 2023
1 parent a42d0de commit daef61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function ct_trap_on_exit() {
# if any is added in the future.
echo "Tests finished with EXIT=$exit_code"
[ $exit_code -eq 0 ] && exit_code="${TESTSUITE_RESULT:-0}"
ct_show_resources
[ -n "${DEBUG:-}" ] || ct_show_resources
ct_cleanup
ct_show_results
exit "$exit_code"
Expand Down

0 comments on commit daef61e

Please sign in to comment.