diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-08-15 21:22:13 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-08-16 14:20:37 +0700 |
commit | 530463879ed5d988038fcb481a043f5092a30ead (patch) | |
tree | 58ba9016488463c0dcbc7c67029b9dfc15bf46c2 /tools | |
parent | 5ef3dd1a54df6cee0377dfd3e34e9ebbcfae37ed (diff) | |
download | pip-530463879ed5d988038fcb481a043f5092a30ead.tar.gz |
Use --durations instead of --duration for pytest
Newer pytest no longer accepts --duration as an alias for --durations.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/travis/run.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/travis/run.sh b/tools/travis/run.sh index a531cbb56..df8f03e7a 100755 --- a/tools/travis/run.sh +++ b/tools/travis/run.sh @@ -49,15 +49,15 @@ if [[ "$GROUP" == "1" ]]; then # Unit tests tox -- --use-venv -m unit -n auto # Integration tests (not the ones for 'pip install') - tox -- -m integration -n auto --duration=5 -k "not test_install" \ + tox -- -m integration -n auto --durations=5 -k "not test_install" \ --use-venv $RESOLVER_SWITCH elif [[ "$GROUP" == "2" ]]; then # Separate Job for running integration tests for 'pip install' - tox -- -m integration -n auto --duration=5 -k "test_install" \ + tox -- -m integration -n auto --durations=5 -k "test_install" \ --use-venv $RESOLVER_SWITCH elif [[ "$GROUP" == "3" ]]; then # Separate Job for tests that fail with the new resolver - tox -- -m fails_on_new_resolver -n auto --duration=5 \ + tox -- -m fails_on_new_resolver -n auto --durations=5 \ --use-venv $RESOLVER_SWITCH --new-resolver-runtests else # Non-Testing Jobs should run once |