Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve t0240 #1781

Merged
merged 3 commits into from
Oct 3, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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