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
1=== modified file 'NEWS'
2--- NEWS 2010-06-17 11:52:13 +0000
3+++ NEWS 2010-06-17 16:58:28 +0000
4@@ -131,6 +131,8 @@
5 Testing
6 *******
7
8+* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
9+ (Vincent Ladeuil, #595587)
10
11 bzr 2.2b3
12 #########
13
14=== modified file 'bzrlib/tests/test_import_tariff.py'
15--- bzrlib/tests/test_import_tariff.py 2010-06-04 03:09:35 +0000
16+++ bzrlib/tests/test_import_tariff.py 2010-06-17 16:58:28 +0000
17@@ -55,13 +55,15 @@
18 # explicitly do want to test against things installed there, therefore
19 # we pass it through.
20 env_changes = dict(PYTHONVERBOSE='1')
21- for name in ['BZR_HOME', 'BZR_PLUGIN_PATH', 'HOME',]:
22+ for name in ['BZR_HOME', 'BZR_PLUGIN_PATH',
23+ 'BZR_DISABLE_PLUGINS', 'BZR_PLUGINS_AT',
24+ 'HOME',]:
25 env_changes[name] = self._old_env.get(name)
26 out, err = self.run_bzr_subprocess(args,
27 allow_plugins=(not are_plugins_disabled()),
28 env_changes=env_changes)
29
30- self.addDetail('subprocess_stderr',
31+ self.addDetail('subprocess_stderr',
32 content.Content(content.ContentType("text", "plain"),
33 lambda:[err]))
34
35@@ -71,7 +73,7 @@
36 bad_modules.append(module_name)
37
38 if bad_modules:
39- self.fail("command %r loaded forbidden modules %r"
40+ self.fail("command %r loaded forbidden modules %r"
41 % (args, bad_modules))
42 return out, err
43