diff --git a/test/run_tests.sh b/test/run_tests.sh index af4affae7..5d003b480 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -211,12 +211,13 @@ run_jm_tests () else bitcoind="bitcoind" fi - if [[ "$($bitcoind -version -datadir="${jm_test_datadir}" | grep -Eo 'v[0-9]+')" == "v26" ]]; then + if (( $($bitcoind -version -datadir="${jm_test_datadir}" | grep -Eo 'v[0-9]+' | tr -d 'v') >= 26 )); then echo "deprecatedrpc=create_bdb" >> "${jm_test_datadir}/bitcoin.conf" fi fi ${orig_umask} echo "datadir=${jm_test_datadir}" >> "${jm_test_datadir}/bitcoin.conf" + cat "${jm_test_datadir}/bitcoin.conf" python -m pytest $additional_pytest_flags \ ${HAS_JOSH_K_SEAL_OF_APPROVAL+--cov=jmclient --cov=jmbitcoin --cov=jmbase --cov=jmdaemon --cov-report html} \ --btcconf="$btcconf" \