]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7810-grep.sh
t7810: use test_expect_code() instead of hand-rolled comparison
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:52 +0000 (20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:38:47 +0000 (14:38 -0700)
commitd964def526b2256a1d573597e978774f1e584770
tree4e03a2819e43fc56d9d7d18c12a1392d953ddaa1
parentadc73318fe120e7b4366c734d574c6316745bc68
t7810: use test_expect_code() instead of hand-rolled comparison

This test manually checks the exit code of git-grep for a particular
value. In doing so, it intentionally breaks the &&-chain. Modernize the
test by taking advantage of test_expect_code() and a normal &&-chain.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7810-grep.sh