diff --git a/test/run_tests.sh b/test/run_tests.sh index af4affae7..be5ac3e75 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -211,10 +211,11 @@ 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 + cat "${jm_test_datadir}/bitcoin.conf" ${orig_umask} echo "datadir=${jm_test_datadir}" >> "${jm_test_datadir}/bitcoin.conf" python -m pytest $additional_pytest_flags \