Skip to content

Commit 1477933

Browse files
author
MarcoFalke
committed
Merge #15370: test_runner: Remove unused --force option
fae8b8b qa: Add tool-prefix to functional test readme (MarcoFalke) faf3d22 test_runner: Remove unused --force option (MarcoFalke) Pull request description: When someone calls the script they already have all intention to call it, no need to specify a redundant `--force`. The functional tests are still disabled on the travis windows cross builds, where they'd run into issues when run under Wine. Tree-SHA512: ada0dd9b3c0cd28c5832a12c5e04c029dc3bfe5ddf366fd0abc24fb7914d2e0f0a873fe756ade7ba780a561abe9bc731838c289accc421deda481269e08514cd
2 parents 0206956 + fae8b8b commit 1477933

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ test_script:
5454
- cmd: src\bench_bitcoin.exe -evals=1 -scaling=0 > NUL
5555
- ps: python test\util\bitcoin-util-test.py
5656
- cmd: python test\util\rpcauth-test.py
57-
- cmd: python test\functional\test_runner.py --ci --force --quiet --combinedlogslen=4000 --failfast
57+
- cmd: python test\functional\test_runner.py --ci --quiet --combinedlogslen=4000 --failfast
5858
deploy: off

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,21 @@ jobs:
6666
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi"
6767
6868
- stage: test
69-
name: 'Win32 [GOAL: deploy] [no gui tests]'
69+
name: 'Win32 [GOAL: deploy] [no gui or functional tests]'
7070
env: >-
7171
HOST=i686-w64-mingw32
7272
DPKG_ADD_ARCH="i386"
7373
PACKAGES="python3 nsis g++-mingw-w64-i686 wine-binfmt wine32"
74+
RUN_FUNCTIONAL_TESTS=false
7475
GOAL="deploy"
7576
BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests"
7677
7778
- stage: test
78-
name: 'Win64 [GOAL: deploy] [no gui tests]'
79+
name: 'Win64 [GOAL: deploy] [no gui or functional tests]'
7980
env: >-
8081
HOST=x86_64-w64-mingw32
8182
PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
83+
RUN_FUNCTIONAL_TESTS=false
8284
GOAL="deploy"
8385
BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests"
8486

test/functional/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ don't have test cases for.
4343
- `mining` for tests for mining features, eg `mining_prioritisetransaction.py`
4444
- `p2p` for tests that explicitly test the p2p interface, eg `p2p_disconnect_ban.py`
4545
- `rpc` for tests for individual RPC methods or features, eg `rpc_listtransactions.py`
46+
- `tool` for tests for tools, eg `tool_wallet.py`
4647
- `wallet` for tests for wallet features, eg `wallet_keypool.py`
4748
- use an underscore to separate words
4849
- exception: for tests for specific RPCs or command line options which don't include underscores, name the test after the exact RPC or argument name, eg `rpc_decodescript.py`, not `rpc_decode_script.py`

test/functional/test_runner.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
This module calls down into individual test cases via subprocess. It will
88
forward all unrecognized arguments onto the individual test scripts.
99
10-
Functional tests are disabled on Windows by default. Use --force to run them anyway.
11-
1210
For a description of arguments recognized by test scripts, see
1311
`test/functional/test_framework/test_framework.py:BitcoinTestFramework.main`.
1412
@@ -226,7 +224,6 @@ def main():
226224
parser.add_argument('--ci', action='store_true', help='Run checks and code that are usually only enabled in a continuous integration environment')
227225
parser.add_argument('--exclude', '-x', help='specify a comma-separated-list of scripts to exclude.')
228226
parser.add_argument('--extended', action='store_true', help='run the extended test suite in addition to the basic tests')
229-
parser.add_argument('--force', '-f', action='store_true', help='run tests even on platforms where they are disabled by default (e.g. windows).')
230227
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
231228
parser.add_argument('--jobs', '-j', type=int, default=4, help='how many test scripts to run in parallel. Default=4.')
232229
parser.add_argument('--keepcache', '-k', action='store_true', help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
@@ -263,12 +260,6 @@ def main():
263260

264261
enable_bitcoind = config["components"].getboolean("ENABLE_BITCOIND")
265262

266-
if config["environment"]["EXEEXT"] == ".exe" and not args.force:
267-
# https://github.com/bitcoin/bitcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9
268-
# https://github.com/bitcoin/bitcoin/pull/5677#issuecomment-136646964
269-
print("Tests currently disabled on Windows by default. Use --force option to enable")
270-
sys.exit(0)
271-
272263
if not enable_bitcoind:
273264
print("No functional tests to run.")
274265
print("Rerun ./configure with --with-daemon and then make")

0 commit comments

Comments
 (0)