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:
Achilleas Koutsou 2022-08-30 16:08:04 +02:00 committed by Tom Gundersen
parent 3b14828669
commit bf83bbea38
28 changed files with 19 additions and 105 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/bash
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
function installClient() {
if ! hash aws; then

View file

@ -1,5 +1,7 @@
#!/usr/bin/bash
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
function createReqFileEdge() {
cat > "$REQUEST_FILE" << EOF
{