]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6600-test-reach.sh
test-reach: add run_three_modes method
authorDerrick Stolee <stolee@gmail.com>
Thu, 1 Nov 2018 13:46:18 +0000 (13:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2018 03:14:22 +0000 (12:14 +0900)
commit4b47a9a85ee43de37986721e5c5cb70f5652544b
treeb66900b654d9af220a64ab66487f9ccbeb0fec1d
parentaca4240f6a32423df5f95de6a9354b524fe57ec5
test-reach: add run_three_modes method

The 'test_three_modes' method assumes we are using the 'test-tool
reach' command for our test. However, we may want to use the data
shape of our commit graph and the three modes (no commit-graph,
full commit-graph, partial commit-graph) for other git commands.

Split test_three_modes to be a simple translation on a more general
run_three_modes method that executes the given command and tests
the actual output to the expected output.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6600-test-reach.sh