summaryrefslogtreecommitdiff
path: root/t/t4013/diff.noellipses-diff-tree_--root_-r_--abbrev_initial
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-02-23 05:14:06 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-24 11:34:21 -0800
commitdf126ca14269efaf4d28453743a386be81ebec85 (patch)
treeb6ac00fb383cb4110a7442a3f17538896e9453fe /t/t4013/diff.noellipses-diff-tree_--root_-r_--abbrev_initial
parentGit 2.25 (diff)
downloadtgif-df126ca14269efaf4d28453743a386be81ebec85.tar.xz
t3400: make test clean up after itself
This test intentionally creates a file which causes rebase to fail, thus it is important that this file be deleted before subsequent tests are run which are not expecting such a failure. In the past, the common way to ensure cleanup (regardless of whether the test succeeded or failed) was either for the next test to perform the previous test's cleanup as its first step or to do the cleanup at global scope outside of any tests. With the introduction of 'test_when_finished', however, tests can be responsible for their own cleanup. Therefore, update this test to clean up after itself. A bit of history: This 'rm' invocation was moved from within the body of the following test to global scope by bffd750adf (rebase: improve error message when upstream argument is missing, 2010-05-31), which postdates, by about a month, introduction of 'test_when_finished' in 3bf7886705 (test-lib: Let tests specify commands to be run at end of test, 2010-05-02). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.noellipses-diff-tree_--root_-r_--abbrev_initial')
0 files changed, 0 insertions, 0 deletions