mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
travis: Consolidate pytest options to cli options
We were merging pytest.ini options with command line options, which is a bit weird.
This commit is contained in:
@@ -13,6 +13,7 @@ export PYTEST_SENTRY_ALWAYS_REPORT=1
|
|||||||
export BOLTDIR=lightning-rfc
|
export BOLTDIR=lightning-rfc
|
||||||
export TEST_DB_PROVIDER=${DB:-"sqlite3"}
|
export TEST_DB_PROVIDER=${DB:-"sqlite3"}
|
||||||
export TEST_NETWORK=${NETWORK:-"regtest"}
|
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.
|
# Allow up to 4 concurrent tests when not under valgrind, which might run out of memory.
|
||||||
if [ "$VALGRIND" = 0 ]; then
|
if [ "$VALGRIND" = 0 ]; then
|
||||||
@@ -54,11 +55,6 @@ if [ "$NO_PYTHON" != 1 ]; then
|
|||||||
blinker \
|
blinker \
|
||||||
pytest-sentry \
|
pytest-sentry \
|
||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
|
|
||||||
cat > pytest.ini << EOF
|
|
||||||
[pytest]
|
|
||||||
addopts=-p no:logging --color=no --reruns=2 -x
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Configuration which is going to be built:"
|
echo "Configuration which is going to be built:"
|
||||||
|
|||||||
Reference in New Issue
Block a user