fix the check for not installing bindings (used from CI), and refined rerun policy

This commit is contained in:
holger krekel
2019-11-22 12:51:50 +01:00
parent 47be554aff
commit e522920d49
2 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ if __name__ == "__main__":
])
subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True)
if len(sys.argv) > 1 and sys.argv[1] != "onlybuild":
if len(sys.argv) <= 1 or sys.argv[1] != "onlybuild":
subprocess.check_call([
sys.executable, "-m", "pip", "install", "-e", "."
])

View File

@@ -10,8 +10,8 @@ commands =
# (some qr tests are pretty heavy in terms of send/received
# messages and async-imap's likely has concurrency problems,
# eg https://github.com/async-email/async-imap/issues/4 )
pytest -n6 -v -rsXx -k "not qr" {posargs:tests}
pytest -n6 -v -rsXx -k "qr" {posargs:tests}
pytest -n6 --reruns 3 --reruns-delay 5 -v -rsXx -k "not qr" {posargs:tests}
pytest -n6 --reruns 5 --reruns-delay 5 -v -rsXx -k "qr" {posargs:tests}
# python tests/package_wheels.py {toxworkdir}/wheelhouse
passenv =
TRAVIS
@@ -69,7 +69,7 @@ commands =
[pytest]
addopts = -v -rs --reruns 3 --reruns-delay 2
addopts = -v -rs
python_files = tests/test_*.py
norecursedirs = .tox
xfail_strict=true