summaryrefslogtreecommitdiff
path: root/t/lib-bash.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2020-01-06 23:53:08 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-27 12:56:02 -0800
commitc232ffa83cb3b21e4e6671c50609bfaf5659e899 (patch)
tree89f8c39d6b407ed7d6325bcd36fcc90ed56ca0e4 /t/lib-bash.sh
parentt3415: stop losing return codes of git commands (diff)
downloadtgif-c232ffa83cb3b21e4e6671c50609bfaf5659e899.tar.xz
t3415: increase granularity of test_auto_{fixup,squash}()
We are using `test_must_fail test_auto_{fixup,squash}` which would ensure that the function failed. However, this is a little ham-fisted as there is no way of ensuring that the expected part of the function actually fails. Increase the granularity by accepting an optional `!` first argument which will check that the rebase does not squash in any commits by ensuring that there are still 4 commits. If `!` is not provided, the old logic is run. This patch may be better reviewed with `--ignore-all-space`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-bash.sh')
0 files changed, 0 insertions, 0 deletions