test: add test separator
This commit is contained in:
1 file changed
+4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user