Loading test.sh +3 −5 Original line number Diff line number Diff line Loading @@ -17,13 +17,11 @@ test () tmp=$($@ 2>$log_file 1>$log_file) rt=$? if [[ $rt -ne 0 ]]; then printf "[${RED}X${WHITE}] $@: $rt" echo echo -e "[${RED}X${WHITE}] $@: $rt" ((errors += 1)) return fi printf "[${GREEN}V${WHITE}] $@" echo echo -e "[${GREEN}V${WHITE}] $@" } # set -x #debug Loading @@ -32,5 +30,5 @@ test dc config -q file=$(mktemp) && dc config > $file 2>$log_file && test diff test_config.yml $file && rm $file [ $errors -gt 0 ] && printf "There were $errors errors found\n" && exit 1 [ $errors -gt 0 ] && echo "There were $errors errors found" && exit 1 Loading
test.sh +3 −5 Original line number Diff line number Diff line Loading @@ -17,13 +17,11 @@ test () tmp=$($@ 2>$log_file 1>$log_file) rt=$? if [[ $rt -ne 0 ]]; then printf "[${RED}X${WHITE}] $@: $rt" echo echo -e "[${RED}X${WHITE}] $@: $rt" ((errors += 1)) return fi printf "[${GREEN}V${WHITE}] $@" echo echo -e "[${GREEN}V${WHITE}] $@" } # set -x #debug Loading @@ -32,5 +30,5 @@ test dc config -q file=$(mktemp) && dc config > $file 2>$log_file && test diff test_config.yml $file && rm $file [ $errors -gt 0 ] && printf "There were $errors errors found\n" && exit 1 [ $errors -gt 0 ] && echo "There were $errors errors found" && exit 1