travis: Reduce reruns to 2 and early failure on test failure

While continuing to test all tests is good, it also means we potentially wait
much longer to get the final verdict, and it can truncate logs if there are
too many failures.
This commit is contained in:
Christian Decker
2020-09-23 12:09:32 +02:00
committed by Rusty Russell
parent a777d21fb7
commit 85dd19c9ac

View File

@@ -56,7 +56,7 @@ if [ "$NO_PYTHON" != 1 ]; then
cat > pytest.ini << EOF
[pytest]
addopts=-p no:logging --color=no --reruns=5
addopts=-p no:logging --color=no --reruns=2 -x
EOF
fi