Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 970145 - Allow -f to be used for test add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvold committed Feb 10, 2014
1 parent b3fc777 commit 06a4278
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python-lib/cuddlefish/__init__.py
Expand Up @@ -96,8 +96,8 @@
"match FILENAME and optionally "
"match TESTNAME, both regexps"),
metavar="FILENAME[:TESTNAME]",
default=None,
cmds=['test', 'testex', 'testpkgs',
default='',
cmds=['test', 'testex', 'testaddons', 'testpkgs',
'testall'])),
(("-g", "--use-config",), dict(dest="config",
help="use named config from local.json",
Expand Down Expand Up @@ -421,6 +421,9 @@ def test_all_testaddons(env_root, defaults):
addons.sort()
fail = False
for dirname in addons:
if (not defaults['filter'].split(":")[0] in dirname):
continue

print >>sys.stderr, "Testing %s..." % dirname
sys.stderr.flush()
try:
Expand All @@ -445,6 +448,9 @@ def test_all_examples(env_root, defaults):
examples.sort()
fail = False
for dirname in examples:
if (not defaults['filter'].split(":")[0] in dirname):
continue

print >>sys.stderr, "Testing %s..." % dirname
sys.stderr.flush()
try:
Expand Down

0 comments on commit 06a4278

Please sign in to comment.