diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-27 15:16:29 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2022-04-21 19:20:05 +0200 |
commit | a01d5c61f72579f5f5c3fc6a4a5331225587fc36 (patch) | |
tree | cddd501b0dcd53c422d7ba5c93b09d7abd6b7dab /integration | |
parent | 23346b27b8edac3fbe6f423a28064e1da180d6db (diff) |
integration: color-code output
Diffstat (limited to 'integration')
-rwxr-xr-x | integration/test.sh | 6 |
1 files 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 |