diff options
author | Martin Kulhavy <martin.kulhavy@nokia.com> | 2017-08-15 16:04:11 +0300 |
---|---|---|
committer | Martin Kulhavy <martin.kulhavy@nokia.com> | 2017-08-15 16:04:11 +0300 |
commit | 0ab327d6ccdc62f75d6693bea29f3bf41e60c14c (patch) | |
tree | 3b8d884bf758c9843a7e7404a51b865c1b36e01a /ci/cleanvm.sh | |
parent | b46de9e8a6d2a87d6e475b6ee9bf66c2c2b9761f (diff) |
Improve and highlight logging to console (2)
xtrace produces a lot of output that can be hard to read. This commit
uses extra functions for formatted output (info and error),
so that they stand out in the log and make it easier for the user to
understand what is currently happening.
Building up on change #38909: https://gerrit.opnfv.org/gerrit/38909
Change-Id: I0ddf9e0d3a12a62ae45c56d33a8d48c335b618a0
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
Diffstat (limited to 'ci/cleanvm.sh')
-rwxr-xr-x | ci/cleanvm.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ci/cleanvm.sh b/ci/cleanvm.sh index df069baf..a2609bd8 100755 --- a/ci/cleanvm.sh +++ b/ci/cleanvm.sh @@ -2,7 +2,9 @@ set -x -echo " Cleanup Started ..." +source tools.sh + +echo_info "Cleanup Started..." #use the below commands if you needs to delete the virtual machine # also along with environment destroy. @@ -20,4 +22,4 @@ do sudo rm -f /var/lib/libvirt/images/${vm}.qcow2 done -echo " Cleanup Finished ..." +echo_info "Cleanup Finished!" |