mirror of
https://github.com/curl/curl.git
synced 2026-07-25 06:48:07 +03:00
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:
parent
108e51835e
commit
3b30cc1a0d
9 changed files with 47 additions and 15 deletions
3
.github/workflows/linux.yml
vendored
3
.github/workflows/linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
6
.github/workflows/ngtcp2-linux.yml
vendored
6
.github/workflows/ngtcp2-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
.github/workflows/quiche-linux.yml
vendored
3
.github/workflows/quiche-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue