diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-11-12 10:56:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-13 11:02:12 +0900 |
commit | d784d978f68219774270f92f3672e0e064602c09 (patch) | |
tree | a46336a85ff084f99a8d0f6a2c12f02bde1fb43a /t/t9122-git-svn-author.sh | |
parent | graph: fix coloring of octopus dashes (diff) | |
download | tgif-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/t9122-git-svn-author.sh')
0 files changed, 0 insertions, 0 deletions