Skip to content

Commit 47a353d

Browse files
committedOct 3, 2015
Merge pull request #1781 from ipfs/improve-t0240
Improve t0240
2 parents 513b75a + 880f378 commit 47a353d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎test/sharness/t0240-republisher.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export IPTB_ROOT="`pwd`/.iptb"
1212
export DEBUG=true
1313

1414
ipfsi() {
15-
local dir=$1; shift; IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
15+
dir="$1"
16+
shift
17+
IPFS_PATH="$IPTB_ROOT/$dir" ipfs "$@"
1618
}
1719

1820
setup_iptb() {
@@ -21,7 +23,7 @@ setup_iptb() {
2123
'
2224

2325
test_expect_success "set configs up" '
24-
for i in `seq 0 3`
26+
for i in $(test_seq 0 3)
2527
do
2628
ipfsi $i config Ipns.RepublishPeriod 20s
2729
done
@@ -61,8 +63,8 @@ verify_can_resolve() {
6163
'
6264

6365
test_expect_success "output looks right" '
64-
printf /ipfs/$expected > expected &&
65-
test_cmp resolve expected
66+
printf "/ipfs/$expected" > expected &&
67+
test_cmp expected resolve
6668
'
6769
}
6870

0 commit comments

Comments
 (0)
Please sign in to comment.