~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/__init__.py

  • Committer: Martin Pool
  • Date: 2006-02-22 04:29:54 UTC
  • mfrom: (1566 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060222042954-60333f08dd56a646
[merge] from bzr.dev before integration
Fix undefined ordering in sign_my_revisions breaking tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
rather starts again from the run_bzr function.
24
24
"""
25
25
 
26
 
from bzrlib.tests import TestLoader
27
 
from bzrlib.tests import TestCaseInTempDir, BzrTestBase
 
26
from bzrlib.tests import (
 
27
                          _load_module_by_name,
 
28
                          TestCaseWithTransport,
 
29
                          TestSuite,
 
30
                          TestLoader,
 
31
                          )
28
32
 
29
33
def test_suite():
30
34
    testmod_names = [
31
35
                     'bzrlib.tests.blackbox.test_added',
32
36
                     'bzrlib.tests.blackbox.test_ancestry',
33
37
                     'bzrlib.tests.blackbox.test_cat',
 
38
                     'bzrlib.tests.blackbox.test_checkout',
 
39
                     'bzrlib.tests.blackbox.test_commit',
34
40
                     'bzrlib.tests.blackbox.test_diff',
35
41
                     'bzrlib.tests.blackbox.test_export',
36
42
                     'bzrlib.tests.blackbox.test_find_merge_base',
 
43
                     'bzrlib.tests.blackbox.test_help',
 
44
                     'bzrlib.tests.blackbox.test_info',
 
45
                     'bzrlib.tests.blackbox.test_log',
 
46
                     'bzrlib.tests.blackbox.test_logformats',
37
47
                     'bzrlib.tests.blackbox.test_missing',
38
48
                     'bzrlib.tests.blackbox.test_outside_wt',
39
49
                     'bzrlib.tests.blackbox.test_pull',
 
50
                     'bzrlib.tests.blackbox.test_re_sign',
40
51
                     'bzrlib.tests.blackbox.test_revert',
41
52
                     'bzrlib.tests.blackbox.test_revno',
42
53
                     'bzrlib.tests.blackbox.test_revision_info',
43
54
                     'bzrlib.tests.blackbox.test_selftest',
 
55
                     'bzrlib.tests.blackbox.test_sign_my_commits',
44
56
                     'bzrlib.tests.blackbox.test_status',
45
57
                     'bzrlib.tests.blackbox.test_too_much',
 
58
                     'bzrlib.tests.blackbox.test_update',
46
59
                     'bzrlib.tests.blackbox.test_upgrade',
47
60
                     'bzrlib.tests.blackbox.test_versioning',
48
61
                     ]
49
 
    return TestLoader().loadTestsFromNames(testmod_names)
50
 
 
51
 
 
52
 
class ExternalBase(TestCaseInTempDir):
 
62
 
 
63
    suite = TestSuite()
 
64
    loader = TestLoader()
 
65
    for mod_name in testmod_names:
 
66
        mod = _load_module_by_name(mod_name)
 
67
        suite.addTest(loader.loadTestsFromModule(mod))
 
68
    return suite
 
69
 
 
70
 
 
71
class ExternalBase(TestCaseWithTransport):
53
72
 
54
73
    def runbzr(self, args, retcode=0, backtick=False):
55
74
        if isinstance(args, basestring):