Skip to content

Commit 83c5840

Browse files
committed
fix testlib.sh
1 parent 30d759f commit 83c5840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testlib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ report_failure () {
160160

161161
# Mark the end of a test.
162162
end_test () {
163-
test_status="${1:-$?}"
163+
test_result=$?
164+
test_status="${1:-$test_result}"
164165
after_time=$(date '+%s')
165166
elapsed_time=$((after_time - before_time))
166167
set +x -e

0 commit comments

Comments
 (0)