~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_import_tariff.py

  • Committer: Vincent Ladeuil
  • Date: 2010-06-17 16:54:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5306.
  • Revision ID: v.ladeuil+lp@free.fr-20100617165426-741tbmgwi62a9zub
Pass BZR_PLUGINS_AT and BZR_DISABLE_PLINGS to the subprocess fpr test_import_tariff

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        # explicitly do want to test against things installed there, therefore
56
56
        # we pass it through.
57
57
        env_changes = dict(PYTHONVERBOSE='1')
58
 
        for name in ['BZR_HOME', 'BZR_PLUGIN_PATH', 'HOME',]:
 
58
        for name in ['BZR_HOME', 'BZR_PLUGIN_PATH',
 
59
                     'BZR_DISABLE_PLUGINS', 'BZR_PLUGINS_AT',
 
60
                     'HOME',]:
59
61
            env_changes[name] = self._old_env.get(name)
60
62
        out, err = self.run_bzr_subprocess(args,
61
63
            allow_plugins=(not are_plugins_disabled()),
62
64
            env_changes=env_changes)
63
65
 
64
 
        self.addDetail('subprocess_stderr', 
 
66
        self.addDetail('subprocess_stderr',
65
67
            content.Content(content.ContentType("text", "plain"),
66
68
                lambda:[err]))
67
69
 
71
73
                bad_modules.append(module_name)
72
74
 
73
75
        if bad_modules:
74
 
            self.fail("command %r loaded forbidden modules %r" 
 
76
            self.fail("command %r loaded forbidden modules %r"
75
77
                % (args, bad_modules))
76
78
        return out, err
77
79