Add timing information to test-job
I'm always curious how long these jobs take, and although the date is being output at the start and finish of the job, the start date usually scrolls out of my terminal buffer before it finishes so it's not possible to check later.
This commit is contained in:
parent
95ad839b62
commit
04a2399a2c
@ -14,6 +14,7 @@ BAREMETAL_FLAVOR=baremetal-6
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
date
|
date
|
||||||
|
start_seconds=$(date +%s)
|
||||||
|
|
||||||
BIN_DIR=$(cd $(dirname $0); pwd -P)
|
BIN_DIR=$(cd $(dirname $0); pwd -P)
|
||||||
MY_ID=$1
|
MY_ID=$1
|
||||||
@ -58,5 +59,7 @@ ssh -t -t $SSH_OPTS centos@$UNDERCLOUD_IP /tmp/ovb-instack
|
|||||||
heat stack-delete $STACK_NAME-$MY_ID
|
heat stack-delete $STACK_NAME-$MY_ID
|
||||||
|
|
||||||
date
|
date
|
||||||
echo 'Finished'
|
end_seconds=$(date +%s)
|
||||||
|
elapsed_seconds=$(($end_seconds - $start_seconds))
|
||||||
|
echo "Finished in $elapsed_seconds seconds"
|
||||||
rm -rf $TEMPDIR
|
rm -rf $TEMPDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user