tests: fix cleanup after tests in t1509-root-worktree
During cleanup we do a simple 'rm /*' to remove leftover files from previous tests. As 'rm' errors out when there is anything it cannot delete and there are directories present at '/' it will throw an error, causing the '&&' chain to fail. Fix this by explicitly removing the files. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Aug 5, 2015 at 11:43 UTC
faacc5aa7c3d9c0695bf0203b55c4fd77cd5cda3
1 file changed
+1
-1
t/t1509-root-worktree.sh
+1
-1
@@ -242,7 +242,7 @@ say "auto bare gitdir"
242
# DESTROYYYYY!!!!!
243
test_expect_success 'setup' '
244
rm -rf /refs /objects /info /hooks &&
245
- rm /* &&
245
+ rm -f /expected /ls.expected /me /result &&
246
cd / &&
247
echo "Initialized empty Git repository in /" > expected &&
248
git init --bare > result &&