t1091: use check_files to reduce boilerplate
authorDerrick Stolee <redacted>
Fri, 24 Jan 2020 21:19:31 +0000 (21:19 +0000)
committerJunio C Hamano <redacted>
Fri, 24 Jan 2020 21:26:54 +0000 (13:26 -0800)
commit522e6417487cc5c3f2f6d49c8f63554af63d8eda
tree9bfbd74d933f45d7a0c851292647a48620f244b1
parent4fd683b6a35eabd23dd5183da7f654a1e1f00325
t1091: use check_files to reduce boilerplate

When testing the sparse-checkout feature, we need to compare the
contents of the working-directory against some expected output.
Using here-docs was useful in the beginning, but became repetetive
as the test script grew.

Create a check_files helper to make the tests simpler and easier
to extend. It also reduces instances of bad here-doc whitespace.

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t1091-sparse-checkout-builtin.sh
git clone https://git.99rst.org/PROJECT