From a01d5c61f72579f5f5c3fc6a4a5331225587fc36 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 27 Mar 2022 15:16:29 +0200 Subject: integration: color-code output --- integration/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/test.sh b/integration/test.sh index 64996ae..fe09ad0 100755 --- a/integration/test.sh +++ b/integration/test.sh @@ -149,16 +149,16 @@ function run_tests() { } function die() { - echo "$(date +"%Y-%m-%d %H:%M:%S") [FATA] $@" >&2 + echo -e "\e[90m$(date +"%Y-%m-%d %H:%M:%S")\e[0m [\e[1;31mFATA\e[0m] $@" >&2 exit 1 } function info() { - echo "$(date +"%Y-%m-%d %H:%M:%S") [INFO] $@" >&2 + echo -e "\e[90m$(date +"%Y-%m-%d %H:%M:%S")\e[0m [\e[94mINFO\e[0m] $@" >&2 } function warn() { - echo "$(date +"%Y-%m-%d %H:%M:%S") [WARN] $@" >&2 + echo -e "\e[90m$(date +"%Y-%m-%d %H:%M:%S")\e[0m [\e[33mWARN\e[0m] $@" >&2 } main -- cgit v1.2.3