test: add test separator

This commit is contained in:
ttionya
2025-10-23 20:15:02 +08:00
parent 5ea71c9dd9
commit fb3c530b01
+4
View File
@@ -78,14 +78,18 @@ function check_files_same_in_folders() {
# test result
########################################
function test_result() {
local SEP="================================================================================"
if [[ "$2" == "0" ]]; then
color green "Test case \"$1\" passed"
color none "${SEP}"
return
fi
((ERROR_NUM++))
color red "Test case \"$1\" failed"
color none "${SEP}"
}
. tests/units/env-priority/test.sh