Sometimes it's useful to be able to run all test except some specified tests, either because those tests take a long time to execute or because you know they're broken.
This commit adds an additional --exclude or -x option to rpc-tests to exclude a comma-separated-list of tests. Usage is:
rpc-tests.py --exclude=test1,test2,test3
or
rpc-tests.py --exclude test1,test2,test3
or
rpc-tests.py -x=test1,test2,test3
or
rpc-tests.py -x test1,test2,test3
test names are given without the .py suffix.
This can be combined with the extended option to run the entire suite of tests, except for a single test, eg pruning.py which takes a long time:
rpc-tests.py --extended -x pruning
Note for reviewers: this requires and builds on top of #9657 . Please review only the last commit in this PR (921f6e1ac9b32cb80a83d97054b4cfdbbc290110)
[EDIT: edited commit hash]