diff options
author | Markos Chandras <mchandras@suse.de> | 2018-02-19 18:24:58 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-02-19 21:55:44 +0000 |
commit | 247a101c20df114bc1d07c3341bcc16e44968181 (patch) | |
tree | f5ee6b8c4c7cd8fde28f88c02b3874b1494cd136 /xci/xci-deploy.sh | |
parent | 4fc1a145810a25f6b537368ab014f7e0684dea73 (diff) |
xci: xci-deploy.sh: Calculate and print the total deployment time
It's useful to know how XCI performs in terms of duration time so
use the bash $SECONDS variable to calculate the total amount of time
it takes for a full XCI deployment. Moreover, use the 'ts' command to
print a timestamp for every command executed. This will help developers
identify tasks which take a lot of time to complete and possibly
optimize them.
Change-Id: I75a8cb8c05957bb205e63210d6cafaf54d989f32
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/xci-deploy.sh')
-rwxr-xr-x | xci/xci-deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index 18c8bb22..1eeaf3b2 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -168,4 +168,10 @@ echo "Info: Deploying '${XCI_INSTALLER}' installer" echo "-----------------------------------------------------------------------" source ${XCI_PATH}/xci/installer/${XCI_INSTALLER}/deploy.sh +# Deployment time +xci_deploy_time=$SECONDS +echo "-------------------------------------------------------------------------------------------------------------" +echo "Info: xci_deploy.sh deployment took $(($xci_deploy_time / 60)) minutes and $(($xci_deploy_time % 60)) seconds" +echo "-------------------------------------------------------------------------------------------------------------" + # vim: set ts=4 sw=4 expandtab: |