From f2cc3679bbd341f36b850e81e47999408ffa7fc6 Mon Sep 17 00:00:00 2001 From: fivepiece Date: Thu, 21 Sep 2017 18:22:33 +0300 Subject: [PATCH] return pytest return value in run_tests.sh --- test/run_tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/run_tests.sh b/test/run_tests.sh index 222aa0f..7ef85b5 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -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