aboutsummaryrefslogtreecommitdiff
path: root/command-list.txt
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-12-07 08:50:23 -0600
committerJunio C Hamano <gitster@pobox.com>2011-12-08 14:49:19 -0800
commit1af524eba1367a56c02d0e2d6e6d26a1d25ac485 (patch)
treed266b30278158ce2b10a8c2d04d8fb470a60b82c /command-list.txt
parent67a612c4e5c106ad5b0e627ab3e87f0d5b768b3e (diff)
downloadgit-1af524eba1367a56c02d0e2d6e6d26a1d25ac485.tar.gz
git-1af524eba1367a56c02d0e2d6e6d26a1d25ac485.tar.xz
t7501 (commit): modernize style
Put the opening quote starting each test on the same line as the test_expect_* invocation. While at it: - guard commands that prepare test input for individual tests in the same test_expect_success, so their scope is clearer and errors at that stage can be caught; - use the compare_diff_patch helper function when comparing patches; - use single-quotes in preference to double-quotes and <<\EOF in preference to <<EOF, to save readers the trouble of looking for variable interpolations; - lift the setting of the $author variable used throughout the test script to the top of the test script; - include "setup" in the titles of test assertions that prepare for later ones to make it more obvious which tests can be skipped; - use test_must_fail instead of "if ...; then:; else false; fi", for clarity and to catch segfaults when they happen; - break up some pipelines into separate commands that read and write to ordinary files, and test the exit status at each stage; - chain commands with &&. Breaks in a test assertion's && chain can potentially hide failures from earlier commands in the chain; - combine two initial tests that do not make as much sense alone. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'command-list.txt')
0 files changed, 0 insertions, 0 deletions