Skip to content

Conversation

@meshcollider
Copy link
Contributor

@meshcollider meshcollider commented Sep 26, 2021

Functional tests which use flags like --descriptors or --legacy-wallet won't run if only the base script is given to test_runner.py because it doesn't match any script in the list exactly. It would be easier if it would just run both options.

For example, instead of:

test_runner.py 'wallet_basic.py --legacy-wallet' 'wallet_basic.py --descriptors' 

We can now just run:

test_runner.py wallet_basic 

Also useful for --usecli, the IPv4/IPv6/nonloopback rpc_bind.py variations, etc.

@achow101
Copy link
Member

Alternatively there's #20892 which will run both --legacy and --descriptors if neither are specified, and it works outside of test_runner.py

@meshcollider
Copy link
Contributor Author

meshcollider commented Sep 26, 2021

Thanks @achow101, wasn't aware of that PR. This is just a quick fix because its kinda inconvenient, and also works with the other test flags.

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review ACK b8909b0

This also helps with --mineblock, --usecli, ...

@laanwj
Copy link
Member

laanwj commented Sep 28, 2021

I think this makes sense, I also considered making this change. I see no drawbacks, you can still have the same level of specificity by giving the whole name.

#20892 can be considered separately.

Code review ACK b8909b0

laanwj added a commit to bitcoin-core/gui that referenced this pull request Sep 28, 2021
…matching flags

b8909b0 Run functional tests with all possible flags (Samuel Dobson)

Pull request description:

  Functional tests which use flags like `--descriptors` or `--legacy-wallet` won't run if only the base script is given to `test_runner.py` because it doesn't match any script in the list exactly. It would be easier if it would just run both options.

  For example, instead of:
  ```
  test_runner.py 'wallet_basic.py --legacy-wallet' 'wallet_basic.py --descriptors'
  ```

  We can now just run:
  ```
  test_runner.py wallet_basic
  ```

  Also useful for `--usecli`, the IPv4/IPv6/nonloopback `rpc_bind.py` variations, etc.

ACKs for top commit:
  laanwj:
    Code review ACK b8909b0
  MarcoFalke:
    review ACK b8909b0

Tree-SHA512: d367037cb170e705551726d47fe4569ebc3ceadece280dd3edbb3ecb41e19f3263d6d272b407316ed6011164e850df4321fb340b1b183b34497c9f7cc439f4d8
@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@maflcko maflcko closed this Sep 28, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 28, 2021
… flags

b8909b0 Run functional tests with all possible flags (Samuel Dobson)

Pull request description:

  Functional tests which use flags like `--descriptors` or `--legacy-wallet` won't run if only the base script is given to `test_runner.py` because it doesn't match any script in the list exactly. It would be easier if it would just run both options.

  For example, instead of:
  ```
  test_runner.py 'wallet_basic.py --legacy-wallet' 'wallet_basic.py --descriptors'
  ```

  We can now just run:
  ```
  test_runner.py wallet_basic
  ```

  Also useful for `--usecli`, the IPv4/IPv6/nonloopback `rpc_bind.py` variations, etc.

ACKs for top commit:
  laanwj:
    Code review ACK b8909b0
  MarcoFalke:
    review ACK b8909b0

Tree-SHA512: d367037cb170e705551726d47fe4569ebc3ceadece280dd3edbb3ecb41e19f3263d6d272b407316ed6011164e850df4321fb340b1b183b34497c9f7cc439f4d8
@meshcollider meshcollider deleted the 202109_tests_matchall branch September 30, 2021 22:10
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 13, 2022
… flags

b8909b0 Run functional tests with all possible flags (Samuel Dobson)

Pull request description:

  Functional tests which use flags like `--descriptors` or `--legacy-wallet` won't run if only the base script is given to `test_runner.py` because it doesn't match any script in the list exactly. It would be easier if it would just run both options.

  For example, instead of:
  ```
  test_runner.py 'wallet_basic.py --legacy-wallet' 'wallet_basic.py --descriptors'
  ```

  We can now just run:
  ```
  test_runner.py wallet_basic
  ```

  Also useful for `--usecli`, the IPv4/IPv6/nonloopback `rpc_bind.py` variations, etc.

ACKs for top commit:
  laanwj:
    Code review ACK b8909b0
  MarcoFalke:
    review ACK b8909b0

Tree-SHA512: d367037cb170e705551726d47fe4569ebc3ceadece280dd3edbb3ecb41e19f3263d6d272b407316ed6011164e850df4321fb340b1b183b34497c9f7cc439f4d8
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants