@cryptotaxi247 / kubo / commits / 78f2f10cc

iptb-lib: small improvements

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Feb 4, 2016 at 22:32 UTC 78f2f10ccf6f93636f9ded9ecd00cfc7ba686af6
1 file changed +2 -2
test/sharness/lib/iptb-lib.sh
+2 -2
@@ -19,7 +19,7 @@ check_has_connection() {
19
20 startup_cluster() {
21 num_nodes="$1"
22 - bound=$(expr $num_nodes - 1)
22 + bound=$(expr "$num_nodes" - 1)
23
24 test_expect_success "start up nodes" '
25 iptb start
@@ -29,7 +29,7 @@ startup_cluster() {
29 iptb connect [1-$bound] 0
30 '
31
32 - for i in $(test_seq 1 $bound)
32 + for i in $(test_seq 0 "$bound")
33 do
34 test_expect_success "node $i is connected" '
35 check_has_connection "$i" ||