Merge pull request #2262 from coreos-inc/TEST-timeout
fix(Dockerfile): add timeout, remove auto distmode
This commit is contained in:
commit
6513d7085d
3 changed files with 6 additions and 4 deletions
|
@ -158,11 +158,13 @@ RUN if [ "$RUN_TESTS" = true ]; then \
|
|||
fi
|
||||
|
||||
RUN if [ "$RUN_TESTS" = true ]; then \
|
||||
TEST=true PYTHONPATH="." venv/bin/py.test --verbose --show-count -x --color=no test ; \
|
||||
TEST=true PYTHONPATH="." venv/bin/py.test --timeout=3600 --verbose \
|
||||
--show-count -x --color=no ./; \
|
||||
fi
|
||||
|
||||
RUN if [ "$RUN_TESTS" = true ]; then \
|
||||
TEST=true PYTHONPATH="." venv/bin/py.test --verbose --show-count -n auto -x --color=no test/registry_tests.py ; \
|
||||
TEST=true PYTHONPATH="." venv/bin/py.test --timeout=3600 --verbose \
|
||||
--show-count -x --color=no test/registry_tests.py ; \
|
||||
fi
|
||||
|
||||
RUN PYTHONPATH=. venv/bin/alembic heads | grep -E '^[0-9a-f]+ \(head\)$' > ALEMBIC_HEAD
|
||||
|
|
|
@ -4,4 +4,5 @@ python-coveralls
|
|||
pytest-flask
|
||||
pytest-runner
|
||||
pytest-xdist
|
||||
pytest-timeout
|
||||
-e git+https://github.com/ant31/pytest-sugar.git#egg=pytest-sugar
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[tool:pytest]
|
||||
norecursedirs = .* *.egg build dist docs
|
||||
testpaths = test
|
||||
confcutdir = test
|
||||
testpaths = ./
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
||||
|
|
Reference in a new issue