From 719f2423899370a764b7863bc945970939a74e2b Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 1 May 2024 20:11:36 +0300 Subject: [PATCH] Fix run_tests.sh for Bitcoin Core v27 --- test/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/run_tests.sh b/test/run_tests.sh index af4affa..5d003b4 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" \