From 84174c4f71cf61fbfcdfd3ab64cb21ae9525b19e Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 25 Jun 2014 12:43:46 +0200 Subject: [PATCH] CDB-3094 no hardcoded coloring output by creating a new log_warning function --- test/organization/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/organization/test.sh b/test/organization/test.sh index 94674df..c8f1057 100644 --- a/test/organization/test.sh +++ b/test/organization/test.sh @@ -50,7 +50,8 @@ function sql() { if [[ ${CODERESULT} -ne 0 ]] then - echo -e "FAILED TO EXECUTE QUERY: \033[0;33m${QUERY}\033[0m" + echo -n "FAILED TO EXECUTE QUERY: " + log_warning "${QUERY}" if [[ "$3" != "fails" ]] then log_error "${QUERY}" @@ -91,6 +92,10 @@ function log_debug() { _log "1;32m" "> $1" } +function log_warning() { + _log "0;33m" "$1" +} + function _log() { echo -e "\033[$1$2\033[0m" }