Skip to content

Commit 908a320

Browse files
jherlandgitster
authored andcommitted
t3301: modernize style
Make this test script appear somewhat less old-fashioned: - Use test helper functions: - write_script - test_commit - test_write_lines - test_line_count - test_config - test_unconfig - test_path_is_missing - Remove whitespace between redirection operators and their targets. - Move preparation of "expect" files into tests. - Rename "output" files to "actual". - More consistent quoting, especially around commands that might expand to nothing. - More visibility of important whitespace with ${indent}. - Combine pairs of tests that unnecessarily split setup and verification. Improved-by: Eric Sunshine <[email protected]> Improved-by: Junio C Hamano <[email protected]> Improved-by: Michael Blume <[email protected]> Improved-by: Jeff King <[email protected]> Signed-off-by: Johan Herland <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8a4acd6 commit 908a320

File tree

1 file changed

+601
-699
lines changed

1 file changed

+601
-699
lines changed

0 commit comments

Comments
 (0)