test/shared_lib.sh: make *print functions print to stderr
This will allow using them inside Bash function that return values, without tainting the returned value. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
856bdd3c74
commit
b010a855f6
1 changed files with 3 additions and 3 deletions
|
|
@ -35,13 +35,13 @@ function get_build_info() {
|
||||||
|
|
||||||
# Colorful timestamped output.
|
# Colorful timestamped output.
|
||||||
function greenprint {
|
function greenprint {
|
||||||
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
function yellowprint {
|
function yellowprint {
|
||||||
echo -e "\033[1;33m[$(date -Isecond)] ${1}\033[0m"
|
echo -e "\033[1;33m[$(date -Isecond)] ${1}\033[0m" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
function redprint {
|
function redprint {
|
||||||
echo -e "\033[1;31m[$(date -Isecond)] ${1}\033[0m"
|
echo -e "\033[1;31m[$(date -Isecond)] ${1}\033[0m" >&2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue