From 5721a1050c9171f33d5f12887d0994c55a04686b Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 5 Dec 2015 07:36:46 +0100 Subject: [PATCH] t0020: cleanup dir with bad perms This is needed on OSX otherwise the trash directory for the t0020-init.sh test fails to be removed due to a permissions error. This fixes https://github.com/ipfs/go-ipfs/issues/2026 License: MIT Signed-off-by: Christian Couder --- test/sharness/t0020-init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/sharness/t0020-init.sh b/test/sharness/t0020-init.sh index 8416502b388..6a5976902f7 100755 --- a/test/sharness/t0020-init.sh +++ b/test/sharness/t0020-init.sh @@ -24,6 +24,11 @@ test_expect_success "ipfs init output looks good" ' test_cmp init_fail_exp init_fail_out ' +test_expect_success "cleanup dir with bad perms" ' + chmod 775 "$IPFS_PATH" && + rmdir "$IPFS_PATH" +' + # test no repo error message # this applies to `ipfs add sth`, `ipfs refs ` test_expect_success "ipfs cat fails" '