summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-11-12 10:56:22 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-13 11:02:12 +0900
commitd784d978f68219774270f92f3672e0e064602c09 (patch)
treea46336a85ff084f99a8d0f6a2c12f02bde1fb43a /t/test-lib.sh
parentgraph: fix coloring of octopus dashes (diff)
downloadtgif-d784d978f68219774270f92f3672e0e064602c09.tar.xz
t4215: use helper function to check output
When git commands are placed in the upstream of a pipe, their return codes are lost. In this particular case, it is especially bad since we are testing the intricacies of `git log --graph` behavior and if we hit an unexpected failure or segfault, we want to know this. Extract the common output checking logic into check_graph() where we redirect the output of git commands upstream of pipe into a file and have sed read from that file so that git failures are detected. This patch is best viewed with `--color-moved`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
0 files changed, 0 insertions, 0 deletions