From aed21e2afa8c03f61d3870e6ee515dbd6e68ab76 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 12 Oct 2020 18:10:57 +0200 Subject: [PATCH] travis: Consolidate pytest options to cli options We were merging pytest.ini options with command line options, which is a bit weird. --- .travis/build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis/build.sh b/.travis/build.sh index a71e733f5..f2a2cac50 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -13,6 +13,7 @@ export PYTEST_SENTRY_ALWAYS_REPORT=1 export BOLTDIR=lightning-rfc export TEST_DB_PROVIDER=${DB:-"sqlite3"} export TEST_NETWORK=${NETWORK:-"regtest"} +export PYTEST_OPTS="--reruns=2 --maxfail=5 ${PYTEST_OPTS}" # Allow up to 4 concurrent tests when not under valgrind, which might run out of memory. if [ "$VALGRIND" = 0 ]; then @@ -54,11 +55,6 @@ if [ "$NO_PYTHON" != 1 ]; then blinker \ pytest-sentry \ pytest-rerunfailures - - cat > pytest.ini << EOF -[pytest] -addopts=-p no:logging --color=no --reruns=2 -x -EOF fi echo "Configuration which is going to be built:"