test/functional/test_runner.py has command line arguments to specify legacy wallet or descriptor wallet:
--descriptors Run test using a descriptor wallet
--legacy-wallet Run test using legacy wallets
But this is not working. If you will try to run test suite with --legacy-wallet argument, you will have errors on all descriptor wallet tests.
1/194 - wallet_hd.py --descriptors failed, Duration: 0 s
stdout:
stderr:
usage: wallet_hd.py [options]
wallet_hd.py: error: argument --legacy-wallet: not allowed with argument --descriptors
2/194 - wallet_backup.py --descriptors failed, Duration: 1 s
stdout:
stderr:
usage: wallet_backup.py [options]
wallet_backup.py: error: argument --legacy-wallet: not allowed with argument --descriptors
By looking at --help output, I was assuming this specifies to run only either descriptor wallet or legacy wallet tests (skip others), but that's not what's happening. It just adds --descriptors or --legacy-wallet as argument to individual tests. But, as there are tests with --descriptors argument explictly specified in test list, you end up with test.py --descriptors --legacy-wallet situations.
I think this should be either fixed or these test_runner parameters be removed.