|
1
|
2 test_done () { |
|
2
|
3 case "$test_failure" in |
|
3
|
4 0) |
|
4
|
5 test_at_end_hook_ |
|
5
|
6 |
|
6
|
7 exit 0 ;; |
|
7
|
8 |
|
8
|
9 *) |
|
9
|
10 if test $test_external_has_tap -eq 0 |
|
10
|
11 then |
|
11
|
12 say_color error "# failed $test_failure among $msg" |
|
12
|
13 say "1..$test_count" |
|
13
|
14 fi |
|
14
|
15 |
|
15
|
16 exit 1 ;; |
|
16
|
17 |
|
17
|
18 esac |
|
18
|
19 } |