coverage.py: add --variant option

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-08-28 08:13:33 +02:00
parent 5533b25255
commit c95632f963
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -88,6 +88,9 @@ def main():
)
parser.add_argument("--mode", metavar="mode", help="only run tests with this mode")
parser.add_argument("--dist", metavar="dist", help="only run tests with this dist")
parser.add_argument(
"--variant", metavar="variant", help="only run tests with this variant"
)
args = parser.parse_args()
# copy over files from git or as distributed
@ -257,6 +260,9 @@ def main():
if args.mode and args.mode != mode:
print(f"skipping because of --mode={args.mode}", file=sys.stderr)
continue
if args.variant and args.variant != variant:
print(f"skipping because of --variant={args.variant}", file=sys.stderr)
continue
proc = subprocess.Popen(argv)
try:
proc.wait()