t4254: modernize tests
commitddeaf7ef0d23519cb810542978da54dd89d6fb73
authorSZEDER Gábor <szeder@ira.uka.de>
Wed, 16 Oct 2013 12:27:16 +0000 (16 14:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Oct 2013 22:05:53 +0000 (17 15:05 -0700)
tree878aefe1b642c43e870466b41bef21656a920d03
parent3991e91063bb701d8ba12199b993a8f121f27f04
t4254: modernize tests

- Don't start tests with 'test $? = 0' to catch preparation done
  outside the test_expect_success block.

- Move writing the bogus patch and the expected output into the
  appropriate test_expect_success blocks.

- Use the test_must_fail helper instead of manually checking for
  non-zero exit code.

- Use the debug-friendly test_path_is_file helper instead of 'test -f'.

- No space after '>'.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4254-am-corrupt.sh