File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 19
19
static const char * const builtin_branch_usage [] = {
20
20
"git branch [options] [-r | -a] [--merged | --no-merged]" ,
21
21
"git branch [options] [-l] [-f] <branchname> [<start-point>]" ,
22
- "git branch [options] [-r] (-d | -D) <branchname>" ,
22
+ "git branch [options] [-r] (-d | -D) <branchname>... " ,
23
23
"git branch [options] (-m | -M) [<oldbranch>] <newbranch>" ,
24
24
NULL
25
25
};
Original file line number Diff line number Diff line change @@ -446,9 +446,14 @@ test_debug () {
446
446
447
447
test_run_ () {
448
448
test_cleanup=:
449
+ expecting_failure=$2
449
450
eval >&3 2>&4 " $1 "
450
451
eval_ret=$?
451
- eval >&3 2>&4 " $test_cleanup "
452
+
453
+ if test -z " $immediate " || test $eval_ret = 0 || test -n " $expecting_failure "
454
+ then
455
+ eval >&3 2>&4 " $test_cleanup "
456
+ fi
452
457
if test " $verbose " = " t" && test -n " $HARNESS_ACTIVE " ; then
453
458
echo " "
454
459
fi
@@ -497,7 +502,7 @@ test_expect_failure () {
497
502
if ! test_skip " $@ "
498
503
then
499
504
say >&3 " checking known breakage: $2 "
500
- test_run_ " $2 "
505
+ test_run_ " $2 " expecting_failure
501
506
if [ " $? " = 0 -a " $eval_ret " = 0 ]
502
507
then
503
508
test_known_broken_ok_ " $1 "
@@ -774,6 +779,9 @@ test_cmp() {
774
779
#
775
780
# except that the greeting and config --unset must both succeed for
776
781
# the test to pass.
782
+ #
783
+ # Note that under --immediate mode, no clean-up is done to help diagnose
784
+ # what went wrong.
777
785
778
786
test_when_finished () {
779
787
test_cleanup=" { $*
You can’t perform that action at this time.
0 commit comments