Skip to content

Commit

Permalink
Don't run extra tests when trying to only run a specific collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Feb 15, 2015
1 parent 9e7eb15 commit bcc276f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ def getCollectorTests(path):
'diamond'))

getCollectorTests(cPath)
getCollectorTests(dPath)

if not options.collector:
# Only pull in diamond tests when a specific collector
# hasn't been specified
getCollectorTests(dPath)

loader = unittest.TestLoader()
tests = []
Expand Down

0 comments on commit bcc276f

Please sign in to comment.