pytest: improvements

- set CURL_CI for pytest runs in CI environments
- exclude timing sensitive tests from CI runs
- for failed results, list only the log and stat of
  the failed transfer

- fix type in http.c comment

Closes #11812
This commit is contained in:
Stefan Eissing 2023-09-06 10:03:37 +02:00 committed by Daniel Stenberg
parent 108e51835e
commit 3b30cc1a0d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 47 additions and 15 deletions

View file

@ -404,7 +404,8 @@ jobs:
# run for `tests` directory, so pytest does not pick up any other
# packages we might have built here
run:
pytest -v tests
pytest tests
name: 'run pytest'
env:
TFLAGS: "${{ matrix.build.tflags }}"
CURL_CI: github

View file

@ -263,15 +263,17 @@ jobs:
env:
TFLAGS: "${{ matrix.build.tflags }}"
- run: pytest -v
- run: pytest tests
name: 'run pytest'
env:
TFLAGS: "${{ matrix.build.tflags }}"
CURL_CI: github
- run: pytest
- run: pytest tests
name: 'run pytest with slowed network'
env:
# 33% of sends are EAGAINed
CURL_DBG_SOCK_WBLOCK: 33
# only 80% of data > 10 bytes is send
CURL_DBG_SOCK_WPARTIAL: 80
CURL_CI: github

View file

@ -202,7 +202,8 @@ jobs:
env:
TFLAGS: "${{ matrix.build.tflags }}"
- run: pytest -v tests/http
- run: pytest tests
name: 'run pytest'
env:
TFLAGS: "${{ matrix.build.tflags }}"
CURL_CI: github