~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/testing/custom.py

  • Committer: Marc Tardif
  • Date: 2012-04-03 02:21:47 UTC
  • Revision ID: marc.tardif@canonical.com-20120403022147-70m3lz8xe4cq192y
Fixed Makefile for syncdb target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
from unittest import TestSuite
14
14
 
15
 
from testtools import iterate_tests
16
 
 
17
15
from zope.testing.testrunner import find
18
16
 
19
17
 
43
41
        returns only those tests with ids in the file `list_name`.
44
42
    """
45
43
    def do_filter(tests_by_layer_name):
 
44
        from testtools import iterate_tests
 
45
 
46
46
        tests = sorted(set(line.strip() for line in open(list_name, "rb")))
47
47
        result = {}
48
48
        for layer_name, suite in tests_by_layer_name.iteritems():