Skip to content

Commit

Permalink
Add timeout flag to pytest
Browse files Browse the repository at this point in the history
fix #3339

Signed-off-by: Sebastian Wojciechowski <s.wojciechowski89@gmail.com>
  • Loading branch information
sebwoj committed Jun 29, 2019
1 parent 78d31f1 commit 67a8896
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions devel/ci/Dockerfile-f29
Expand Up @@ -47,6 +47,9 @@ RUN dnf install --disablerepo rawhide-modular -y \
# sqlalchemy_schemadisplay is not packaged for Python 3 in Fedora < 30
RUN pip-3 install sqlalchemy_schemadisplay

# pytest-timeout is not packaged for Python 3 in Fedora
RUN pip-3 install pytest-timeout

# Fake pungi being installed so we can avoid it and all its dependencies
RUN ln -s /usr/bin/true /usr/bin/pungi-koji
VOLUME ["/results"]
Expand Down
3 changes: 3 additions & 0 deletions devel/ci/Dockerfile-f30
Expand Up @@ -46,6 +46,9 @@ RUN dnf install --disablerepo rawhide-modular -y \
python3-waitress \
python3-webtest

# pytest-timeout is not packaged for Python 3 in Fedora
RUN pip-3 install pytest-timeout

# Fake pungi being installed so we can avoid it and all its dependencies
RUN ln -s /usr/bin/true /usr/bin/pungi-koji
VOLUME ["/results"]
Expand Down
1 change: 1 addition & 0 deletions devel/ci/Dockerfile-pip
Expand Up @@ -38,6 +38,7 @@ RUN pip-3 install \
pydocstyle \
pytest \
pytest-cov \
pytest-timeout \
"sphinx<2.1" \
sqlalchemy_schemadisplay \
webtest
Expand Down
3 changes: 3 additions & 0 deletions devel/ci/Dockerfile-rawhide
Expand Up @@ -45,6 +45,9 @@ RUN dnf install --disablerepo rawhide-modular -y \
python3-webtest \
python3-yaml

# pytest-timeout is not packaged for Python 3 in Fedora
RUN pip-3 install pytest-timeout

# Fake pungi being installed so we can avoid it and all its dependencies
RUN ln -s /usr/bin/true /usr/bin/pungi-koji
VOLUME ["/results"]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -54,7 +54,7 @@ inherit = true
add-ignore = D413

[tool:pytest]
addopts = --cov-config .coveragerc --cov=bodhi --cov-report term --cov-report xml --cov-report html
addopts = --cov-config .coveragerc --cov=bodhi --cov-report term --cov-report xml --cov-report html --timeout=60

[update_catalog]
domain = bodhi
Expand Down

0 comments on commit 67a8896

Please sign in to comment.