]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
tests/lib.sh: adjust to pytest logging style
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Jun 2024 16:02:32 +0000 (18:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Aug 2024 12:19:56 +0000 (12:19 +0000)
Black on white is still the best to read. So we only style FAILED or
PASSED in green or red. This is also tested with different background
colors. As we only style PASSED or FAILED it works without any problems

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/lib.sh

index e462f4adde977a854eb52c9321a254b38be1a301..f49a9474835750e9a1d36174072c8d212f7d2721 100644 (file)
@@ -12,11 +12,11 @@ LIB_DIR="$(dirname "${LIB_DIR}")"
 . ${LIB_DIR}/lib_color.sh
 
 log_test_failed(){
-       echo -e "${CLR_RED_BG}Test failed: ${*}${CLR_RESET}'"
+       echo -e "${CLR_RED_R}FAILED:${CLR_RESET} ${*}"
 }
 
 log_test_succeded(){
-       echo -e "${CLR_GREEN_BG}Test succeded: ${*}${CLR_RESET}"
+       echo -e "${CLR_GREEN_R}PASSED:${CLR_RESET} ${*}"
 }
 
 test_command() {