]> git.scottworley.com Git - pinch/blobdiff - test.sh
README: Link auto-upgrade-with-pinch
[pinch] / test.sh
diff --git a/test.sh b/test.sh
index fed0065bd99b1d7a271b23787bfb2edcf371f455..942c65c7e77f806f14583296699a0f1d0070a03b 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -9,6 +9,7 @@ find . -name build -prune -o -name dist -prune -o -name '*.py' -print0 |
 
 for test in tests/*;do
   if [ ! -d "$test" ];then
 
 for test in tests/*;do
   if [ ! -d "$test" ];then
+    echo "### Running test $test" >&2
     "$test"
   fi
 done
     "$test"
   fi
 done
@@ -23,7 +24,7 @@ if [ "$1" = lint ];then
     find . -name '*.py' -print0 |
       xargs -P "$PARALLELISM" -0 -n1 autopep8 --diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
   )
     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
     echo "Formatting needs fixing:"
     echo "$formatting_needs_fixing"
     exit 1