File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ testScriptsExt=(
37
37
' bipdersig.py'
38
38
' getblocktemplate_longpoll.py'
39
39
' getblocktemplate_proposals.py'
40
- ' prune .py'
40
+ ' pruning .py'
41
41
' forknotify.py'
42
42
' invalidateblock.py'
43
43
' keypool.py'
@@ -51,21 +51,25 @@ testScriptsExt=(
51
51
' rawtransactions.py'
52
52
# 'forknotify.py'
53
53
);
54
+
55
+ extArg=" -extended"
56
+ passOn=${@# $extArg }
57
+
54
58
if [ " x${ENABLE_BITCOIND}${ENABLE_UTILS}${ENABLE_WALLET} " = " x111" ]; then
55
59
for (( i = 0 ; i < ${# testScripts[@]} ; i++ ))
56
60
do
57
- if [ -z " $1 " ] || [ " $1 " == " -extended " ] || [ " $1 " == " ${testScripts[$i]} " ] || [ " $1 .py" == " ${testScripts[$i]} " ]
61
+ if [ -z " $1 " ] || [ " ${1 : 0 : 1} " == " -" ] || [ " $1 " == " ${testScripts[$i]} " ] || [ " $1 .py" == " ${testScripts[$i]} " ]
58
62
then
59
63
echo -e " Running testscript \033[1m${testScripts[$i]} ...\033[0m"
60
- ${BUILDDIR} /qa/rpc-tests/${testScripts[$i]} --srcdir " ${BUILDDIR} /src"
64
+ ${BUILDDIR} /qa/rpc-tests/${testScripts[$i]} --srcdir " ${BUILDDIR} /src" ${passOn}
61
65
fi
62
66
done
63
67
for (( i = 0 ; i < ${# testScriptsExt[@]} ; i++ ))
64
68
do
65
- if [ " $1 " == " -extended " ] || [ " $1 " == " ${testScriptsExt[$i]} " ] || [ " $1 .py" == " ${testScriptsExt[$i]} " ]
69
+ if [ " $1 " == $extArg ] || [ " $1 " == " ${testScriptsExt[$i]} " ] || [ " $1 .py" == " ${testScriptsExt[$i]} " ]
66
70
then
67
- echo -e " Running testscript \033[1m${testScriptsExt[$i]} ...\033[0m"
68
- ${BUILDDIR} /qa/rpc-tests/${testScriptsExt[$i]} --srcdir " ${BUILDDIR} /src"
71
+ echo -e " Running \033[1m2nd level\033[0m testscript \033[1m${testScriptsExt[$i]} ...\033[0m"
72
+ ${BUILDDIR} /qa/rpc-tests/${testScriptsExt[$i]} --srcdir " ${BUILDDIR} /src" ${passOn}
69
73
fi
70
74
done
71
75
else
Original file line number Diff line number Diff line change 8
8
# that spend (directly or indirectly) coinbase transactions.
9
9
#
10
10
11
- from test_framework import BitcoinTestFramework
12
- from util import *
11
+ from test_framework . test_framework import BitcoinTestFramework
12
+ from test_framework . util import *
13
13
from pprint import pprint
14
14
from time import sleep
15
15
Original file line number Diff line number Diff line change 3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
- from test_framework import BitcoinTestFramework
7
- from util import *
6
+ from test_framework . test_framework import BitcoinTestFramework
7
+ from test_framework . util import *
8
8
9
9
10
10
class SignRawTransactionsTest (BitcoinTestFramework ):
You can’t perform that action at this time.
0 commit comments