diff options
author | Drashna Jael're <drashna@live.com> | 2021-12-17 20:42:50 -0800 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-12-17 20:42:50 -0800 |
commit | eff2efbe2712cb3a3a26a514cda52c2a90ed3d39 (patch) | |
tree | 6ec51a0dc277f287e9f88ff5b41e5cfbf73dc38f /lib/python | |
parent | fe8a53b09720b33ada9363f4a5abad82022ca967 (diff) | |
parent | d8a98aeaf2fb92a5d92a97ed41af5c93cd8480b1 (diff) |
Merge remote-tracking branch 'qmk/master' into firmware21
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/cli/pytest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/pytest.py b/lib/python/qmk/cli/pytest.py index a7f01a872a..2e4a0a9f00 100644 --- a/lib/python/qmk/cli/pytest.py +++ b/lib/python/qmk/cli/pytest.py @@ -7,11 +7,12 @@ from subprocess import DEVNULL from milc import cli +@cli.argument('-t', '--test', arg_only=True, action='append', default=[], help="Mapped to nose2 'testNames' positional argument - https://docs.nose2.io/en/latest/usage.html#specifying-tests-to-run") @cli.subcommand('QMK Python Unit Tests', hidden=False if cli.config.user.developer else True) def pytest(cli): """Run several linting/testing commands. """ - nose2 = cli.run(['nose2', '-v'], capture_output=False, stdin=DEVNULL) + nose2 = cli.run(['nose2', '-v', '-t' 'lib/python', *cli.args.test], capture_output=False, stdin=DEVNULL) flake8 = cli.run(['flake8', 'lib/python'], capture_output=False, stdin=DEVNULL) return flake8.returncode | nose2.returncode |