# Sleep some, waiting for the network to bootstrap.
# TODO: Add chutney command 'bootstrap-status' and use that instead.
- -BOOTSTRAP_TIME=18
- -echo -n "$myname: sleeping for $BOOTSTRAP_TIME seconds"
+ +BOOTSTRAP_TIME=${BOOTSTRAP_TIME:-18}
+ +$ECHO_N "$myname: sleeping for $BOOTSTRAP_TIME seconds"
n=$BOOTSTRAP_TIME; while [ $n -gt 0 ]; do
- - sleep 1; n=$(expr $n - 1); echo -n .
+ + sleep 1; n=$(expr $n - 1); $ECHO_N .
done; echo ""
./chutney verify $CHUTNEY_NETWORK
++VERIFY_EXIT_STATUS=$?
++# work around a bug/feature in make -j2 (or more)
++# where make hangs if any child processes are still alive
++./chutney stop $CHUTNEY_NETWORK
++exit $VERIFY_EXIT_STATUS