Skip to content

Commit

Permalink
t0020: cleanup dir with bad perms
Browse files Browse the repository at this point in the history
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 #2026

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Dec 5, 2015
1 parent 83246d3 commit 5721a10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/sharness/t0020-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <hash>`
test_expect_success "ipfs cat fails" '
Expand Down

0 comments on commit 5721a10

Please sign in to comment.