Skip to content

Commit

Permalink
Fix run_tests.sh for Bitcoin Core v27
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed May 1, 2024
1 parent 085ef08 commit aecdf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit aecdf30

Please sign in to comment.