Skip to content

Commit 05b07e3

Browse files
committed
fix: test_execution_result exit trap
1 parent a7d7721 commit 05b07e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runner.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ function runner::run_test() {
213213
exec 3>&1
214214

215215
local test_execution_result=$(
216+
# shellcheck disable=SC2154
216217
trap '
217-
state::set_test_exit_code $?
218+
exit_code=$?
219+
set +e
220+
state::set_test_exit_code "$exit_code"
218221
runner::run_tear_down
219222
runner::clear_mocks
220223
state::export_subshell_context

0 commit comments

Comments
 (0)