Browse Source

Fix run_tests.sh for Bitcoin Core v27

master
Kristaps Kaupe 2 years ago
parent
commit
719f242389
  1. 3
      test/run_tests.sh

3
test/run_tests.sh

@ -211,12 +211,13 @@ run_jm_tests ()
else else
bitcoind="bitcoind" bitcoind="bitcoind"
fi 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" echo "deprecatedrpc=create_bdb" >> "${jm_test_datadir}/bitcoin.conf"
fi fi
fi fi
${orig_umask} ${orig_umask}
echo "datadir=${jm_test_datadir}" >> "${jm_test_datadir}/bitcoin.conf" echo "datadir=${jm_test_datadir}" >> "${jm_test_datadir}/bitcoin.conf"
cat "${jm_test_datadir}/bitcoin.conf"
python -m pytest $additional_pytest_flags \ python -m pytest $additional_pytest_flags \
${HAS_JOSH_K_SEAL_OF_APPROVAL+--cov=jmclient --cov=jmbitcoin --cov=jmbase --cov=jmdaemon --cov-report html} \ ${HAS_JOSH_K_SEAL_OF_APPROVAL+--cov=jmclient --cov=jmbitcoin --cov=jmbase --cov=jmdaemon --cov-report html} \
--btcconf="$btcconf" \ --btcconf="$btcconf" \

Loading…
Cancel
Save