]> git.ipfire.org Git - thirdparty/git.git/commit
t6019: modernize tests with helper
authorDerrick Stolee <derrickstolee@github.com>
Fri, 19 Aug 2022 04:28:09 +0000 (04:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 17:45:07 +0000 (10:45 -0700)
commit1838e21cff17f97900a4987b35ba70ca48bce4b7
tree7ac22e068f1fb3b100bc78050acae4fe1e408963
parent11ea33ce444f929908990ec24c58d848373bdda3
t6019: modernize tests with helper

The tests in t6019 are repetitive, so create a helper that greatly
simplifies the test script.

In addition, update the common pattern that places 'git rev-list' on the
left side of a pipe, which can hide some exit codes. Send the output to
a 'raw' file that is then consumed by other tools so the Git exit code
is verified as zero.  And since we're using --format anyway, switch to
`git log`, so that we get the desired format and can avoid using sed.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6019-rev-list-ancestry-path.sh