From 7cf34c6f62d85a3ef7a8fe206847b4f4841c759c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 2 Aug 2017 10:57:15 -0700 Subject: [PATCH] Parse --grep and --invert for mocha --- script/test.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/script/test.py b/script/test.py index ba6f96d898c7..b09cff582806 100755 --- a/script/test.py +++ b/script/test.py @@ -81,8 +81,13 @@ def parse_args(): help='Run tests in CI mode', action='store_true', required=False) - parser.add_argument('-g', - help='Filter', + parser.add_argument('-g', '--grep', + help='Only run tests matching ', + metavar='pattern', + required=False) + parser.add_argument('-i', '--invert', + help='Inverts --grep matches', + action='store_true', required=False) parser.add_argument('-v', '--verbose', action='store_true',