mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
tests/lib.sh: adjust to pytest logging style
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>
This commit is contained in:
committed by
Michael Tremer
parent
1579e8b3fc
commit
7631871fa9
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user