mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
zdtm.py: Run tests matching given regexp
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
85856e9d42
commit
0fdbffa10e
1 changed files with 5 additions and 0 deletions
|
|
@ -539,6 +539,10 @@ def run_tests(opts):
|
|||
if opts['all']:
|
||||
torun = all_tests(opts)
|
||||
run_all = True
|
||||
elif opts['tests']:
|
||||
r = re.compile(opts['tests'])
|
||||
torun = filter(lambda x: r.match(x), all_tests(opts))
|
||||
run_all = True
|
||||
elif opts['test']:
|
||||
torun = opts['test']
|
||||
run_all = False
|
||||
|
|
@ -636,6 +640,7 @@ rp = sp.add_parser("run", help = "Run test(s)")
|
|||
rp.set_defaults(action = run_tests)
|
||||
rp.add_argument("-a", "--all", action = 'store_true')
|
||||
rp.add_argument("-t", "--test", help = "Test name", action = 'append')
|
||||
rp.add_argument("-T", "--tests", help = "Regexp")
|
||||
rp.add_argument("-f", "--flavor", help = "Flavor to run")
|
||||
rp.add_argument("-x", "--exclude", help = "Exclude tests from --all run", action = 'append')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue