add pytest-timeout to test runs

This adds a default 30 second timeout on every test method so that
deadlocks or broken threads are move obvious in travis. It also passes
-v by default to make things a little more verbose on where things
fail when they are failing.
This commit is contained in:
Sean Dague 2016-02-03 15:12:09 -05:00
parent 356013118d
commit efcba8f1ca
2 changed files with 5 additions and 4 deletions

View file

@ -8,10 +8,10 @@ cd "$(dirname "$0")/.."
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test --cov --cov-report=
py.test -v --timeout=30 --cov --cov-report=
TEST_STATUS=$?
else
py.test
py.test -v --timeout=30
TEST_STATUS=$?
fi