diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-07-04 12:46:10 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-06 12:22:27 -0700 |
commit | cdff1bb5a3d6f0e6bf26d8ff088a0e10b40bc4f3 (patch) | |
tree | 18ca6fab2e667f160d245f776e0bc108287672c2 /contrib/hooks/multimail | |
parent | The second batch (diff) | |
download | tgif-cdff1bb5a3d6f0e6bf26d8ff088a0e10b40bc4f3.tar.xz |
test-lib-functions: introduce test_stdout_line_count
In some tests, we're checking the number of lines in output of some
commands, including but not limited to Git's command.
We're doing the check by running those commands in the left side of
a pipe, thus losing the exit status code of those commands. Meanwhile,
we really want to check the exit status code of Git's command.
Let's write the output of those commands to a temporary file, and use
test_line_count separately in order to check exit status code of
those commands properly.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks/multimail')
0 files changed, 0 insertions, 0 deletions