summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2008-08-26 14:34:42 +0200
committerPierre-Yves David <pierre-yves.david@logilab.fr>2008-08-26 14:34:42 +0200
commitd4135a39a672ef17fbf5dc9c9b6eab99e492e26a (patch)
tree73c86920aab78608ea94cc05744e88f64d2f6a7f /pytest.py
parentd861299087e1ec9d9d6fd3ea254b3d549d6454e4 (diff)
downloadlogilab-common-d4135a39a672ef17fbf5dc9c9b6eab99e492e26a.tar.gz
allow by tag filtering
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index df1007e..4f46a4d 100644
--- a/pytest.py
+++ b/pytest.py
@@ -549,6 +549,8 @@ def make_parser():
action="callback", help="Minimal output")
parser.add_option('-P', '--profile', default=None, dest='profile',
help="Profile execution and store data in the given file")
+ parser.add_option('-m', '--match', default=None, dest='tags_pattern',
+ help="only execute test whose tag macht the current pattern")
try:
from logilab.devtools.lib.coverage import Coverage
@@ -591,7 +593,7 @@ def parseargs(parser):
# append additional args to the new sys.argv and let unittest_main
# do the rest
newargs += args
- return options, explicitfile
+ return options, explicitfile