summaryrefslogtreecommitdiff
path: root/t/t4033-diff-patience.sh
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@student.ethz.ch>2011-08-29 22:10:46 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-08-29 15:27:01 -0700
commitcc663d141a2d900d097973a8fdcb939f697d46bd (patch)
treeb544cf66a62d8c7fc7c2e26b1f269fcfef9cbe23 /t/t4033-diff-patience.sh
parentformat-patch: make zero-length subject prefixes prettier (diff)
downloadtgif-cc663d141a2d900d097973a8fdcb939f697d46bd.tar.xz
t4014: check for empty files from git format-patch --stdout
Most kinds of failure in 'git format-patch --stdout >output' will result in an empty 'output'. This slips past checks that only verify absence of output, such as the '! grep ...' that are quite prevalent in t4014. Introduce a helper check_patch() that checks that at least From, Date and Subject are present, thus making sure it looks vaguely like a patch (or cover letter) email. Then insert calls to it in all tests that do have positive checks for content. This makes two of the tests fail. Mark them as such; they'll be fixed in a moment. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4033-diff-patience.sh')
0 files changed, 0 insertions, 0 deletions