diff --git a/test/bin/cluster.bash b/test/bin/cluster.bash index 91d5b1e431..b776f1a2f1 100755 --- a/test/bin/cluster.bash +++ b/test/bin/cluster.bash @@ -61,7 +61,7 @@ run() { rm -rf "${path}" mkdir -p "${path}" config $port - $CONSUL agent -config-dir "${path}" 2>&1 | tee "${path}/log" & + ( $CONSUL agent -config-dir "${path}" 2>&1 | tee "${path}/log" ; echo "Exit code: $?" >> "${path}/log" ) & jobs="$jobs $!" }