Skip to content

Commit f5cba77

Browse files
committed
tools/tinytest-codegen.py: Add command-line option to exclude tests.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 2c1a6a2 commit f5cba77

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/tinytest-codegen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@ def script_to_map(test_file):
108108
description="Convert native MicroPython tests to tinytest/upytesthelper C code"
109109
)
110110
argparser.add_argument("--stdin", action="store_true", help="read list of tests from stdin")
111+
argparser.add_argument("--exclude", action="append", help="exclude test by name")
111112
args = argparser.parse_args()
112113

113114
if not args.stdin:
115+
if args.exclude:
116+
exclude_tests += tuple(args.exclude)
114117
for group in test_dirs:
115118
tests += [test for test in glob("{}/*.py".format(group)) if test not in exclude_tests]
116119
else:

0 commit comments

Comments
 (0)