test: move greenprint and redprint functions to shared_lib.sh
Since we're sharing functions between test scripts, move greenprint(), the most rewritten function in the history of the project, to shared_lib.sh and source it everywhere.
This commit is contained in:
parent
3b14828669
commit
bf83bbea38
28 changed files with 19 additions and 105 deletions
|
|
@ -79,14 +79,11 @@ case ${IMAGE_TYPE} in
|
|||
exit 1
|
||||
esac
|
||||
|
||||
# Colorful timestamped output.
|
||||
function greenprint {
|
||||
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
||||
}
|
||||
|
||||
ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}"
|
||||
|
||||
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
|
||||
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
|
||||
|
||||
# Container image used for cloud provider CLI tools
|
||||
export CONTAINER_IMAGE_CLOUD_TOOLS="quay.io/osbuild/cloud-tools:latest"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue