-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Bugfix: QA: Run tests with UPnP disabled #16560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Needed for builds configured with --enable-upnp-default
|
Not quite a bugfix? Anyway, without this change: ./configure ... --enable-upnp-default
...
checking whether to build with support for UPnP... yes
checking whether to build with UPnP enabled by default... yes
...
make
...And the following fails: test/functional/feature_config_args.pyTested ACK be192e6 |
| "-debugexclude=libevent", | ||
| "-debugexclude=leveldb", | ||
| "-uacomment=testnode%d" % i, | ||
| "-upnp=0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment in line 84
common args are set in the config file (see initialize_datadir). The args here are only to set the datadir and debug log options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, looks like all tests use the generated bitcoin.conf.
|
@practicalswift I mean it's not a bug to the end user. |
|
Yes, this seems the correct fix |
|
ACK be192e6 Verified that after With this PR the Nit: agree with the suggestion to move bitcoin/test/functional/test_framework/util.py Lines 289 to 305 in e47e36c
|
|
I've cherry-picked this change into #16646, but modified it to use |
b168dd3 Bugfix: QA: Run tests with UPnP disabled (Luke Dashjr) Pull request description: This replaces #16560 by adding `upnp=0` to `bitcoin.conf` rather than passing it to nodes. > Needed for builds configured with --enable-upnp-default You can test this change using: ```bash ./configure --enable-upnp-default && make -j6 && test/functional/test_runner.py feature_config_args.py ``` on master the test will fail without this change. ACKs for top commit: practicalswift: ACK b168dd3 -- diff looks correct Tree-SHA512: e639dd480dda2cffa19a679018c4bd7e4bd4d0f5e3001d6b407b833e3c166bde98b201063e267b8e45f8a20b0d53ec8bc028bec806b2357f9a7ba314cc4e2d07
b168dd3 Bugfix: QA: Run tests with UPnP disabled (Luke Dashjr) Pull request description: This replaces bitcoin#16560 by adding `upnp=0` to `bitcoin.conf` rather than passing it to nodes. > Needed for builds configured with --enable-upnp-default You can test this change using: ```bash ./configure --enable-upnp-default && make -j6 && test/functional/test_runner.py feature_config_args.py ``` on master the test will fail without this change. ACKs for top commit: practicalswift: ACK b168dd3 -- diff looks correct Tree-SHA512: e639dd480dda2cffa19a679018c4bd7e4bd4d0f5e3001d6b407b833e3c166bde98b201063e267b8e45f8a20b0d53ec8bc028bec806b2357f9a7ba314cc4e2d07
Needed for builds configured with --enable-upnp-default