Merge lp:~vila/bzr/595587-fix-test-tariff into lp:bzr

Proposed by Vincent Ladeuil
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 5306
Proposed branch: lp:~vila/bzr/595587-fix-test-tariff
Merge into: lp:bzr
Diff against target: 42 lines (+7/-3)
2 files modified
NEWS (+2/-0)
bzrlib/tests/test_import_tariff.py (+5/-3)
To merge this branch: bzr merge lp:~vila/bzr/595587-fix-test-tariff
Reviewer Review Type Date Requested Status
John A Meinel Approve
Review via email: mp+27859@code.launchpad.net

Commit message

test_import_tariff should respect BZR_PLUGINS_AT and BZR_DISABLE_PLUGINS

Description of the change

Quick fix, no tests, comments welcome if they are needed.
I have tested the BZR_PLUGINS_AT, the BZR_DISABLE_PLUGINS sounds necessary too (if only for diagnostic purposes) but I didn't tested it.

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vincent Ladeuil wrote:
> Vincent Ladeuil has proposed merging lp:~vila/bzr/595587-fix-test-tariff into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> #595587 test_import_tariff doesn't respect BZR_PLUGINS_AT not BZR_DISABLE_PLUGINS
> https://bugs.launchpad.net/bugs/595587
>
>
> Quick fix, no tests, comments welcome if they are needed.
> I have tested the BZR_PLUGINS_AT, the BZR_DISABLE_PLUGINS sounds necessary too (if only for diagnostic purposes) but I didn't tested it.
>

 merge: approve

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwaWxwACgkQJdeBCYSNAANwUgCgiUEcZncVkeirLeHsmV8Ub/f1
2poAn3Ic/r0uyc4idlIWAW+f8UMbHH+Q
=ClDD
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
Robert Collins (lifeless) wrote :

it would be nice to have just one list of such variables. easy low hanging fruit to fix that.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2010-06-17 11:52:13 +0000
+++ NEWS 2010-06-17 16:58:28 +0000
@@ -131,6 +131,8 @@
131Testing131Testing
132*******132*******
133133
134* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
135 (Vincent Ladeuil, #595587)
134136
135bzr 2.2b3137bzr 2.2b3
136#########138#########
137139
=== modified file 'bzrlib/tests/test_import_tariff.py'
--- bzrlib/tests/test_import_tariff.py 2010-06-04 03:09:35 +0000
+++ bzrlib/tests/test_import_tariff.py 2010-06-17 16:58:28 +0000
@@ -55,13 +55,15 @@
55 # explicitly do want to test against things installed there, therefore55 # explicitly do want to test against things installed there, therefore
56 # we pass it through.56 # we pass it through.
57 env_changes = dict(PYTHONVERBOSE='1')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 env_changes[name] = self._old_env.get(name)61 env_changes[name] = self._old_env.get(name)
60 out, err = self.run_bzr_subprocess(args,62 out, err = self.run_bzr_subprocess(args,
61 allow_plugins=(not are_plugins_disabled()),63 allow_plugins=(not are_plugins_disabled()),
62 env_changes=env_changes)64 env_changes=env_changes)
6365
64 self.addDetail('subprocess_stderr', 66 self.addDetail('subprocess_stderr',
65 content.Content(content.ContentType("text", "plain"),67 content.Content(content.ContentType("text", "plain"),
66 lambda:[err]))68 lambda:[err]))
6769
@@ -71,7 +73,7 @@
71 bad_modules.append(module_name)73 bad_modules.append(module_name)
7274
73 if bad_modules:75 if bad_modules:
74 self.fail("command %r loaded forbidden modules %r" 76 self.fail("command %r loaded forbidden modules %r"
75 % (args, bad_modules))77 % (args, bad_modules))
76 return out, err78 return out, err
7779