Commit 78f2f10c authored by Christian Couder's avatar Christian Couder

iptb-lib: small improvements

License: MIT
Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
parent 268ec789
......@@ -19,7 +19,7 @@ check_has_connection() {
startup_cluster() {
num_nodes="$1"
bound=$(expr $num_nodes - 1)
bound=$(expr "$num_nodes" - 1)
test_expect_success "start up nodes" '
iptb start
......@@ -29,7 +29,7 @@ startup_cluster() {
iptb connect [1-$bound] 0
'
for i in $(test_seq 1 $bound)
for i in $(test_seq 0 "$bound")
do
test_expect_success "node $i is connected" '
check_has_connection "$i" ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment