aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-06 23:35:57 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-06 23:35:57 -0500
commitf0dc760df8757caea1d83b15142a3d0704488636 (patch)
treea3c9d8351de510d98610910862f91d8826b33ce1 /cbt
parent4dae0e69f4b2947942d5ff7d4edee482073ee26b (diff)
downloadcbt-f0dc760df8757caea1d83b15142a3d0704488636.tar.gz
cbt-f0dc760df8757caea1d83b15142a3d0704488636.tar.bz2
cbt-f0dc760df8757caea1d83b15142a3d0704488636.zip
trap and pass exit codes throug the app, pass logger on to tests, remove the lib. qualification from Stage1 for better readability
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt6
1 files changed, 6 insertions, 0 deletions
diff --git a/cbt b/cbt
index 7e721c6..d9f1ac7 100755
--- a/cbt
+++ b/cbt
@@ -227,6 +227,7 @@ stage1 () {
log "Running $mainClass via Nailgun." $*
$NG cbt.NailgunLauncher $mainClass $CP "$CWD" $*
fi
+ exitCode=$?
log "Done running $mainClass." $*
}
@@ -238,4 +239,9 @@ while true; do
echo "======= Restarting CBT =======" 1>&2
done
+if [ $compiles -ne 0 ] || [ $compiles2 -ne 0 ]; then
+ exitCode=1
+fi
+
log "Exiting CBT" $*
+exit $exitCode