From 1a58d05e32a382f433b0079fe9ecc88e733a2415 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 28 Jan 2015 10:47:55 +0000 Subject: added timestamps, really fail when there are other running procs --- leap-platform-test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/leap-platform-test b/leap-platform-test index 4a7e30e..3e9c015 100755 --- a/leap-platform-test +++ b/leap-platform-test @@ -54,7 +54,7 @@ add_nodes() { bootstrap_nodes() { - check_for_running_instances + check_for_running_instances || exit $? for vm in $@ do @@ -85,7 +85,7 @@ check_for_running_instances() { create_provider() { - check_for_running_instances + check_for_running_instances || exit $? if [ -e "$PROVIDERDIR" ] then @@ -140,7 +140,7 @@ deploy() { ERRLOG2="$LOGDIR/deploy-error.log" echo "Deploying \"$vm\" on $( date )"|tee -a "$LOG1" "$LOG2" - $LEAP_CMD $OPTS -v 2 deploy "$vm" 2>&1 | tee -a "$LOG1" "$LOG2" | egrep -v "$FILTER_ALL" | tee -a "$ERRLOG1" "$ERRLOG2" > /dev/null + $LEAP_CMD $OPTS -v 2 deploy "$vm" 2>&1 | tee -a "$LOG1" "$LOG2" | egrep -v "$FILTER_ALL" | ts | tee -a "$ERRLOG1" "$ERRLOG2" > /dev/null if [ -s "$ERRLOG1" ] then @@ -187,7 +187,7 @@ log_start() { reset_deploy() { - check_for_running_instances + check_for_running_instances || exit $? local nodes="$*" update_platform -- cgit v1.2.3