@cryptotaxi247 / kubo / commits / 5721a1050

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 <chriscool@tuxfamily.org>

Christian Couder committed Dec 5, 2015 at 07:36 UTC 5721a1050c9171f33d5f12887d0994c55a04686b
1 file changed +5
test/sharness/t0020-init.sh
+5
@@ -24,6 +24,11 @@ test_expect_success "ipfs init output looks good" '
24 test_cmp init_fail_exp init_fail_out
25 '
26
27 +test_expect_success "cleanup dir with bad perms" '
28 + chmod 775 "$IPFS_PATH" &&
29 + rmdir "$IPFS_PATH"
30 +'
31 +
32 # test no repo error message
33 # this applies to `ipfs add sth`, `ipfs refs <hash>`
34 test_expect_success "ipfs cat fails" '