/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2008-03-12 20:13:07 UTC
  • mfrom: (3267 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080312201307-ngd5bynt2nvhnlb7
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1227
1227
            'BZREMAIL': None, # may still be present in the environment
1228
1228
            'EMAIL': None,
1229
1229
            'BZR_PROGRESS_BAR': None,
 
1230
            'BZR_LOG': None,
1230
1231
            # SSH Agent
1231
1232
            'SSH_AUTH_SOCK': None,
1232
1233
            # Proxies
2650
2651
                   'bzrlib.tests.test_deprecated_graph',
2651
2652
                   'bzrlib.tests.test_diff',
2652
2653
                   'bzrlib.tests.test_dirstate',
 
2654
                   'bzrlib.tests.test_directory_service',
2653
2655
                   'bzrlib.tests.test_email_message',
2654
2656
                   'bzrlib.tests.test_errors',
2655
2657
                   'bzrlib.tests.test_escaped_store',
2815
2817
        suite.addTest(doc_suite)
2816
2818
 
2817
2819
    default_encoding = sys.getdefaultencoding()
2818
 
    for name, plugin in  [(n, p) for (n, p) in bzrlib.plugin.plugins().items()
2819
 
                          if (keep_only is None
2820
 
                              or id_filter.is_module_name_used(
2821
 
                p.module.__name__))]:
2822
 
        try:
2823
 
            plugin_suite = plugin.test_suite()
2824
 
        except ImportError, e:
2825
 
            bzrlib.trace.warning(
2826
 
                'Unable to test plugin "%s": %s', name, e)
2827
 
        else:
2828
 
            if plugin_suite is not None:
2829
 
                if keep_only is not None:
2830
 
                    plugin_suite = filter_suite_by_id_list(plugin_suite,
2831
 
                                                           id_filter)
2832
 
                suite.addTest(plugin_suite)
 
2820
    for name, plugin in bzrlib.plugin.plugins().items():
 
2821
        if keep_only is not None:
 
2822
            if not id_filter.is_module_name_used(plugin.module.__name__):
 
2823
                continue
 
2824
        plugin_suite = plugin.test_suite()
 
2825
        # We used to catch ImportError here and turn it into just a warning,
 
2826
        # but really if you don't have --no-plugins this should be a failure.
 
2827
        # mbp 20080213 - see http://bugs.launchpad.net/bugs/189771
 
2828
        if plugin_suite is not None:
 
2829
            if keep_only is not None:
 
2830
                plugin_suite = filter_suite_by_id_list(plugin_suite,
 
2831
                                                       id_filter)
 
2832
            suite.addTest(plugin_suite)
2833
2833
        if default_encoding != sys.getdefaultencoding():
2834
2834
            bzrlib.trace.warning(
2835
2835
                'Plugin "%s" tried to reset default encoding to: %s', name,
2969
2969
SymlinkFeature = _SymlinkFeature()
2970
2970
 
2971
2971
 
 
2972
class _HardlinkFeature(Feature):
 
2973
 
 
2974
    def _probe(self):
 
2975
        return osutils.has_hardlinks()
 
2976
 
 
2977
    def feature_name(self):
 
2978
        return 'hardlinks'
 
2979
 
 
2980
HardlinkFeature = _HardlinkFeature()
 
2981
 
 
2982
 
2972
2983
class _OsFifoFeature(Feature):
2973
2984
 
2974
2985
    def _probe(self):