From 959ca06691dab2352dfddff50d591bef33ff8510 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 22 Mar 2023 12:35:27 +0000 Subject: [PATCH] python: fail fast on the tests Do not waste CI time running the rest of the tests if CI is not going to be green anyway. --- deltachat-rpc-client/tox.ini | 2 +- python/tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deltachat-rpc-client/tox.ini b/deltachat-rpc-client/tox.ini index 86962e798..2543d5108 100644 --- a/deltachat-rpc-client/tox.ini +++ b/deltachat-rpc-client/tox.ini @@ -6,7 +6,7 @@ envlist = [testenv] commands = - pytest {posargs} + pytest --exitfirst {posargs} setenv = # Avoid stack overflow when Rust core is built without optimizations. RUST_MIN_STACK=8388608 diff --git a/python/tox.ini b/python/tox.ini index f22c5252a..904dd041b 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -8,7 +8,7 @@ envlist = [testenv] commands = - pytest -n6 --extra-info -v -rsXx --ignored --strict-tls {posargs: tests examples} + pytest -n6 --exitfirst --extra-info -v -rsXx --ignored --strict-tls {posargs: tests examples} pip wheel . -w {toxworkdir}/wheelhouse --no-deps setenv = # Avoid stack overflow when Rust core is built without optimizations.