File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,19 @@ test_expect_success 'subtest: 2/3 tests passing' '
101
101
EOF
102
102
'
103
103
104
+ test_expect_success ' subtest: --immediate' '
105
+ run_sub_test_lib_test_err partial-pass \
106
+ --immediate &&
107
+ check_sub_test_lib_test_err partial-pass \
108
+ <<-\EOF_OUT 3<<-EOF_ERR
109
+ > ok 1 - passing test #1
110
+ > not ok 2 - failing test #2
111
+ > # false
112
+ > 1..2
113
+ EOF_OUT
114
+ EOF_ERR
115
+ '
116
+
104
117
test_expect_success ' subtest: a failing TODO test' '
105
118
write_and_run_sub_test_lib_test failing-todo <<-\EOF &&
106
119
test_expect_success "passing test" "true"
Original file line number Diff line number Diff line change @@ -806,7 +806,11 @@ test_failure_ () {
806
806
say_color error " not ok $test_count - $1 "
807
807
shift
808
808
printf ' %s\n' " $* " | sed -e ' s/^/# /'
809
- test " $immediate " = " " || _error_exit
809
+ if test -n " $immediate "
810
+ then
811
+ say_color error " 1..$test_count "
812
+ _error_exit
813
+ fi
810
814
}
811
815
812
816
test_known_broken_ok_ () {
You can’t perform that action at this time.
0 commit comments