Added -a/--all to test.py/bench.py for bypass test/bench filters

These really shouldn't be used all that often. Test filters are usually
used to protect against invalid test configurations, so if you bypass
test filters, expect things to fail!

But some filters just prevent test cases from taking too long. In these
cases being able to manually bypass the filter is useful for debugging/
benchmarking/etc...
This commit is contained in:
Christopher Haster
2024-05-28 16:45:26 -05:00
parent 37f738cc71
commit 31eebc1328
4 changed files with 36 additions and 8 deletions

View File

@ -623,6 +623,8 @@ def find_runner(runner, id=None, **args):
cmd.append('--define-depth=%s' % args['define_depth'])
if args.get('powerloss'):
cmd.append('-P%s' % args['powerloss'])
if args.get('all'):
cmd.append('-a')
if args.get('disk'):
cmd.append('-d%s' % args['disk'])
if args.get('trace'):
@ -1510,6 +1512,10 @@ if __name__ == "__main__":
test_parser.add_argument(
'-P', '--powerloss',
help="Comma-separated list of power-loss scenarios to test.")
test_parser.add_argument(
'-a', '--all',
action='store_true',
help="Ignore test filters.")
test_parser.add_argument(
'-d', '--disk',
help="Direct block device operations to this file.")