From daef61e5326bfa4978412eab8dfa8d9e890c3ceb Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Wed, 10 May 2023 12:37:28 +0200 Subject: [PATCH] Show resources only in non-debug mode It may slow down debugging the tests, so let's not show resources whatsoever when in DEBUG mode --- test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-lib.sh b/test-lib.sh index 65efa0f..d2650b0 100644 --- a/test-lib.sh +++ b/test-lib.sh @@ -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"