From: Jeff King Date: Sat, 10 Feb 2018 11:31:29 +0000 (-0500) Subject: t0002: simplify error checking X-Git-Tag: v2.17.0-rc0~73^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dedfdb9c60035eb1b8fd5da1afd6002e841daf19?hp=dedfdb9c60035eb1b8fd5da1afd6002e841daf19 t0002: simplify error checking This ancient test script does a lot of manual checking of test conditions with "if" blocks. We can simplify this by relying on helpers like test_must_fail. Note that a failing "grep" call here won't produce any verbose output, but that's OK. These days we rely on "-x" to tell us about such commands. And in addition, these greps are soon to be converted to test_i18ngrep (which is itself soon learning to be more verbose). Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---