Skip to content

Commit

Permalink
Merge pull request #1781 from ipfs/improve-t0240
Browse files Browse the repository at this point in the history
Improve t0240
  • Loading branch information
jbenet committed Oct 3, 2015
2 parents 513b75a + 880f378 commit 47a353d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/sharness/t0240-republisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export IPTB_ROOT="`pwd`/.iptb"
export DEBUG=true

ipfsi() {
local dir=$1; shift; IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
dir="$1"
shift
IPFS_PATH="$IPTB_ROOT/$dir" ipfs "$@"
}

setup_iptb() {
Expand All @@ -21,7 +23,7 @@ setup_iptb() {
'

test_expect_success "set configs up" '
for i in `seq 0 3`
for i in $(test_seq 0 3)
do
ipfsi $i config Ipns.RepublishPeriod 20s
done
Expand Down Expand Up @@ -61,8 +63,8 @@ verify_can_resolve() {
'

test_expect_success "output looks right" '
printf /ipfs/$expected > expected &&
test_cmp resolve expected
printf "/ipfs/$expected" > expected &&
test_cmp expected resolve
'
}

Expand Down

0 comments on commit 47a353d

Please sign in to comment.