summaryrefslogtreecommitdiffstats
path: root/gitk-git
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-06-06 07:19:33 +0200
committerJunio C Hamano <gitster@pobox.com>2023-06-12 22:23:24 +0200
commitb116c77307853a9fa8f74d1ad16bed98a7211207 (patch)
tree512fcce72a1e8635e652dedf278e3b079fcb88ef /gitk-git
parentt1006: don't strip timestamps from expected results (diff)
downloadgit-b116c77307853a9fa8f74d1ad16bed98a7211207.tar.xz
git-b116c77307853a9fa8f74d1ad16bed98a7211207.zip
t1006: modernize test style to use `test_cmp`
The tests for git-cat-file(1) are quite old and haven't ever been updated since they were introduced. They thus tend to use old idioms that have since grown outdated. Most importantly, many of the tests use `test $A = $B` to compare expected and actual output. This has the downside that it is impossible to tell what exactly is different between both versions in case the test fails. Refactor the tests to instead use `test_cmp`. While more verbose, it both tends to be more readable and will result in a nice diff in case states don't match. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitk-git')
0 files changed, 0 insertions, 0 deletions