summaryrefslogtreecommitdiff
path: root/vcs-svn
diff options
context:
space:
mode:
authorLibravatar Ingo Brückl <ib@wupperonline.de>2016-07-30 22:13:38 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-01 14:20:51 -0700
commitc0fa44d8f1ed211e4e0edbe6bef4697b36b9bacc (patch)
treeb88501efcf238fd4d70e93ae3572ca36b8260765 /vcs-svn
parentadd: add --chmod=+x / --chmod=-x options (diff)
downloadtgif-c0fa44d8f1ed211e4e0edbe6bef4697b36b9bacc.tar.xz
t3700: remove unwanted leftover files before running new tests
When an earlier test that has prerequisite is skipped, files used by later tests may be left in the working tree in an unexpected state. For example, a test runs this sequence: echo foo >xfoo1 && chmod 755 xfoo1 to create an executable file xfoo1, expecting that xfoo1 does not exist before it runs in the test sequence. However, the absence of this file depends on "git reset --hard" done in an earlier test, that is skipped when SANITY prerequisite is not met, and worse yet, xfoo1 originally is created as a symbolic link, which means the chmod does not affect the modes of xfoo1 as this test expects. Fix this by starting the test with "rm -f xfoo1" to make sure the file is created from scratch, and do the same to other similar tests. Signed-off-by: Ingo Brückl <ib@wupperonline.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'vcs-svn')
0 files changed, 0 insertions, 0 deletions