CI: regtest: stop on failed test, expose datadirs
Stops the running regtest if one test fails (using the --failfast option) and makes the wallet data directories of alice, bob and carol available for debugging. This seems helpful to fix issues only happening on the CI.
This commit is contained in:
@@ -183,9 +183,16 @@ task:
|
||||
- tests/regtest/run_bitcoind.sh
|
||||
electrumx_service_background_script:
|
||||
- tests/regtest/run_electrumx.sh
|
||||
# if any test fails, the test will get aborted (--failfast) and the wallet directories will be
|
||||
# available for download in the Cirrus UI
|
||||
regtest_script:
|
||||
- sleep 10s
|
||||
- python3 -m unittest tests/regtest.py
|
||||
- python3 -m unittest tests/regtest.py --failfast || TEST_EXIT_CODE=$?
|
||||
- tar -czf test_wallets.tar.gz /tmp/alice /tmp/bob /tmp/carol || true
|
||||
- exit ${TEST_EXIT_CODE:-0}
|
||||
on_failure:
|
||||
wallet_artifacts:
|
||||
path: "test_wallets.tar.gz"
|
||||
env:
|
||||
LD_LIBRARY_PATH: contrib/_saved_secp256k1_build/
|
||||
ELECTRUM_REQUIREMENTS: contrib/requirements/requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user