test: timestamp messages in test scripts

The commonly used 'greenprint' function now adds a date + timestamp to
each message for debugging and tracking the duration of segments of each
scripts.
This commit is contained in:
Achilleas Koutsou 2021-10-19 16:49:02 +02:00 committed by Tom Gundersen
parent 03fe1337a5
commit aea77ed3de
16 changed files with 16 additions and 16 deletions

View file

@ -9,7 +9,7 @@ source /usr/libexec/osbuild-composer-test/set-env-variables.sh
# Colorful output.
function greenprint {
echo -e "\033[1;32m${1}\033[0m"
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
}
# Install openshift client