From 1b5d87c7cf57ad2382adaa9dd883c5de6d4e0ff7 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 29 May 2022 09:32:02 +0200 Subject: [PATCH] coverage.py: add --mode to only run tests with given mode --- coverage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coverage.py b/coverage.py index 80ad269..af94692 100755 --- a/coverage.py +++ b/coverage.py @@ -74,6 +74,7 @@ def main(): default=0, help="exit after first num failures or errors.", ) + parser.add_argument("--mode", metavar="mode", help="only run tests with this mode") args = parser.parse_args() # copy over files from git or as distributed @@ -146,6 +147,8 @@ def main(): if only_dists and dist not in only_dists: continue for mode in modes: + if args.mode and args.mode != mode: + continue for variant in variants: for fmt in formats: skipreason = skip(