diff options
author | Damien George <damien@micropython.org> | 2021-05-25 22:16:11 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-26 16:24:00 +1000 |
commit | f5cba77e50c9b3ae73d01cb373ad3226247ccd7b (patch) | |
tree | 428d2f090174ac40a85468756baaf1c085e75beb /tools/tinytest-codegen.py | |
parent | 2c1a6a237d4e68c077c175d16f4d76518c00e4d2 (diff) | |
download | micropython-f5cba77e50c9b3ae73d01cb373ad3226247ccd7b.tar.gz micropython-f5cba77e50c9b3ae73d01cb373ad3226247ccd7b.zip |
tools/tinytest-codegen.py: Add command-line option to exclude tests.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools/tinytest-codegen.py')
-rwxr-xr-x | tools/tinytest-codegen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/tinytest-codegen.py b/tools/tinytest-codegen.py index 116a217b4b..cba0b94480 100755 --- a/tools/tinytest-codegen.py +++ b/tools/tinytest-codegen.py @@ -108,9 +108,12 @@ argparser = argparse.ArgumentParser( description="Convert native MicroPython tests to tinytest/upytesthelper C code" ) argparser.add_argument("--stdin", action="store_true", help="read list of tests from stdin") +argparser.add_argument("--exclude", action="append", help="exclude test by name") args = argparser.parse_args() if not args.stdin: + if args.exclude: + exclude_tests += tuple(args.exclude) for group in test_dirs: tests += [test for test in glob("{}/*.py".format(group)) if test not in exclude_tests] else: |