|
|
|
|
@ -46,10 +46,12 @@ run_jm_tests ()
|
|
|
|
|
${orig_umask} |
|
|
|
|
echo "datadir=${jm_test_datadir}" >> "${jm_test_datadir}/bitcoin.conf" |
|
|
|
|
python -m py.test ${HAS_JOSH_K_SEAL_OF_APPROVAL+--cov=jmclient --cov=jmbitcoin --cov=jmbase --cov=jmdaemon --cov-report html} --btcpwd=123456abcdef --btcconf=${jm_test_datadir}/bitcoin.conf --btcuser=bitcoinrpc --nirc=2 -p no:warnings |
|
|
|
|
local success="$?" |
|
|
|
|
unlink ./joinmarket.cfg |
|
|
|
|
if read bitcoind_pid <"${jm_test_datadir}/bitcoind.pid"; then |
|
|
|
|
pkill -15 ${bitcoind_pid} || pkill -9 ${bitcoind_pid} |
|
|
|
|
fi |
|
|
|
|
rm -rf "${jm_test_datadir}" |
|
|
|
|
return ${success:-1} |
|
|
|
|
} |
|
|
|
|
run_jm_tests |
|
|
|
|
|