Unverified Commit 65daac6b authored by Tom Moulard's avatar Tom Moulard
Browse files

test: fixing color output again

parent 05b90dc2
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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
@@ -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