From 78f2f10ccf6f93636f9ded9ecd00cfc7ba686af6 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Thu, 4 Feb 2016 22:32:49 +0100 Subject: [PATCH] iptb-lib: small improvements License: MIT Signed-off-by: Christian Couder --- test/sharness/lib/iptb-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sharness/lib/iptb-lib.sh b/test/sharness/lib/iptb-lib.sh index 3ba09e791..514dc9089 100644 --- a/test/sharness/lib/iptb-lib.sh +++ b/test/sharness/lib/iptb-lib.sh @@ -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" ||