test: log exit code in cluster.bash

This commit is contained in:
Frank Schroeder 2017-06-08 14:06:10 +02:00
parent d98f0f7bab
commit 1a8499316f
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 1 deletions

View File

@ -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 $!"
}