]> git.ipfire.org Git - thirdparty/git.git/commit
t4014: treat rev-list output as the expected value
authorDenton Liu <liu.denton@gmail.com>
Tue, 8 Oct 2019 09:14:11 +0000 (02:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Oct 2019 01:44:40 +0000 (10:44 +0900)
commit756fb0dedb72e8eec691d216198ccc23102d7072
tree6de27a6dcf47cd0bb12eb5c00788fa3e9e32b8db
parent50094ca45f27b8bf5f4c234b2f2643ecd61b8c86
t4014: treat rev-list output as the expected value

In 6bd26f58ea (t4014: use test_line_count() where possible, 2019-08-27),
we converted many test cases to take advantage of the test_line_count()
function. In one conversion, we inverted the expected and actual value
as tested by test_line_count(). Although functionally correct, if
format-patch ever produced incorrect output, the debugging output would
be a bunch of hashes which would be difficult to debug.

Invert the expected and actual values provided to test_line_count() so
that if format-patch produces incorrect output, the debugging output
will be a list of human-readable files instead.

Helped-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4014-format-patch.sh