X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/420bd8c9c431223f9299477dc885d2c9d9f077c5..76fea05b57fcbb8c103a39299ba449d1d048fdb8:/test.sh diff --git a/test.sh b/test.sh index 16d9c05..942c65c 100755 --- a/test.sh +++ b/test.sh @@ -5,10 +5,11 @@ set -e PARALLELISM=4 find . -name build -prune -o -name dist -prune -o -name '*.py' -print0 | - xargs -0 mypy --strict --ignore-missing-imports + xargs -0 mypy --strict --ignore-missing-imports --no-warn-unused-ignores for test in tests/*;do if [ ! -d "$test" ];then + echo "### Running test $test" >&2 "$test" fi done @@ -23,7 +24,7 @@ if [ "$1" = lint ];then find . -name '*.py' -print0 | xargs -P "$PARALLELISM" -0 -n1 autopep8 --diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ) - if [[ "$formatting_needs_fixing" ]];then + if [ -n "$formatting_needs_fixing" ];then echo "Formatting needs fixing:" echo "$formatting_needs_fixing" exit 1