test: add test separator

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