Make run-tests.sh fail if any tests failed!

This commit is contained in:
Behdad Esfahbod 2015-03-03 10:16:01 -08:00
parent f192400039
commit a0befdc025

View File

@ -1,2 +1,9 @@
#!/bin/sh
git grep -l doctest Lib/ | PYTHONPATH="Lib:$PYTHONPATH" xargs -n1 python
PYTHONPATH="Lib:$PYTHONPATH"
export PYTHONPATH
ret=0
git grep -l doctest Lib/ | while read test; do
echo "Running tests in $test"
python $test || let ret=ret+1
done
exit $ret