Merge branch 'maint-1.7.5' into maint
* maint-1.7.5: test: skip clean-up when running under --immediate mode "branch -d" can remove more than one branchesmaint
commit
f5cfd52f7b
|
@ -19,7 +19,7 @@
|
||||||
static const char * const builtin_branch_usage[] = {
|
static const char * const builtin_branch_usage[] = {
|
||||||
"git branch [options] [-r | -a] [--merged | --no-merged]",
|
"git branch [options] [-r | -a] [--merged | --no-merged]",
|
||||||
"git branch [options] [-l] [-f] <branchname> [<start-point>]",
|
"git branch [options] [-l] [-f] <branchname> [<start-point>]",
|
||||||
"git branch [options] [-r] (-d | -D) <branchname>",
|
"git branch [options] [-r] (-d | -D) <branchname>...",
|
||||||
"git branch [options] (-m | -M) [<oldbranch>] <newbranch>",
|
"git branch [options] (-m | -M) [<oldbranch>] <newbranch>",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -446,9 +446,14 @@ test_debug () {
|
||||||
|
|
||||||
test_run_ () {
|
test_run_ () {
|
||||||
test_cleanup=:
|
test_cleanup=:
|
||||||
|
expecting_failure=$2
|
||||||
eval >&3 2>&4 "$1"
|
eval >&3 2>&4 "$1"
|
||||||
eval_ret=$?
|
eval_ret=$?
|
||||||
eval >&3 2>&4 "$test_cleanup"
|
|
||||||
|
if test -z "$immediate" || test $eval_ret = 0 || test -n "$expecting_failure"
|
||||||
|
then
|
||||||
|
eval >&3 2>&4 "$test_cleanup"
|
||||||
|
fi
|
||||||
if test "$verbose" = "t" && test -n "$HARNESS_ACTIVE"; then
|
if test "$verbose" = "t" && test -n "$HARNESS_ACTIVE"; then
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
@ -497,7 +502,7 @@ test_expect_failure () {
|
||||||
if ! test_skip "$@"
|
if ! test_skip "$@"
|
||||||
then
|
then
|
||||||
say >&3 "checking known breakage: $2"
|
say >&3 "checking known breakage: $2"
|
||||||
test_run_ "$2"
|
test_run_ "$2" expecting_failure
|
||||||
if [ "$?" = 0 -a "$eval_ret" = 0 ]
|
if [ "$?" = 0 -a "$eval_ret" = 0 ]
|
||||||
then
|
then
|
||||||
test_known_broken_ok_ "$1"
|
test_known_broken_ok_ "$1"
|
||||||
|
@ -774,6 +779,9 @@ test_cmp() {
|
||||||
#
|
#
|
||||||
# except that the greeting and config --unset must both succeed for
|
# except that the greeting and config --unset must both succeed for
|
||||||
# the test to pass.
|
# the test to pass.
|
||||||
|
#
|
||||||
|
# Note that under --immediate mode, no clean-up is done to help diagnose
|
||||||
|
# what went wrong.
|
||||||
|
|
||||||
test_when_finished () {
|
test_when_finished () {
|
||||||
test_cleanup="{ $*
|
test_cleanup="{ $*
|
||||||
|
|
Loading…
Reference in New Issue