author | Junio C Hamano <gitster@pobox.com> | |
Thu, 1 Mar 2012 02:14:14 +0000 (18:14 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 1 Mar 2012 19:59:51 +0000 (11:59 -0800) | ||
commit | 13a4899886958c211b96bced228fdaaa42674491 | |
tree | dabc27cf0350eee1baab814ddcedb4ae7236079e | tree | snapshot |
parent | 6a2e93f1074d5a8b25c2020805e6b8d795d13e4d | commit | diff |
t4011: modernise style
Match the style to more modern test scripts, namely:
- The first line of each test has prereq, title and opening sq for the
script body. This makes the test shorter while reducing the need for
backslashes.
- Be prepared for the case in which the previous test may have failed.
If a test wants to start from not having "frotz" that the previous test
may have created, write "rm -f frotz", not "rm frotz".
- Prepare the expected output inside your own test.
- The order of comparison to check the result is "diff expected actual",
so that the output will show how the output from the git you just broke
is different from what is expected.
- Write no SP between redirection '>' (or '<' for that matter) and the
filename.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Match the style to more modern test scripts, namely:
- The first line of each test has prereq, title and opening sq for the
script body. This makes the test shorter while reducing the need for
backslashes.
- Be prepared for the case in which the previous test may have failed.
If a test wants to start from not having "frotz" that the previous test
may have created, write "rm -f frotz", not "rm frotz".
- Prepare the expected output inside your own test.
- The order of comparison to check the result is "diff expected actual",
so that the output will show how the output from the git you just broke
is different from what is expected.
- Write no SP between redirection '>' (or '<' for that matter) and the
filename.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4011-diff-symlink.sh | diff | blob | history |