Error running tests for plugins . . .

Russel Winder russel.winder at concertant.com
Sun Jul 5 10:00:36 BST 2009


Vincent,

On Sat, 2009-07-04 at 17:13 +0200, Vincent Ladeuil wrote:
[ . . . ]
>   bzr selftest bzrtools
> 
> loads all plugins, all tests and only runs test whose ID match 'bzrtools'.
> 
> In contrast:
> 
>   bzr selftest --starting-with bp.bzrtools
> 
> run only the tests whose ID begin with bzrlib.plugins.bzrtools[0].
> 
> 'bp' is a shortcut for bzrlib.plugins, you'll find the list of
> all known prefixes in bzrlib/tests/__init__.py:
> 
>   # Obvious highest levels prefixes, feel free to add your own via a plugin
>   test_prefix_alias_registry.register('bd', 'bzrlib.doc')
>   test_prefix_alias_registry.register('bu', 'bzrlib.utils')
>   test_prefix_alias_registry.register('bt', 'bzrlib.tests')
>   test_prefix_alias_registry.register('bb', 'bzrlib.tests.blackbox')
>   test_prefix_alias_registry.register('bp', 'bzrlib.plugins')

I guess this needs to be someone on a page "New hackers read this",
massively useful stuff.

[ . .  .]
>     Russel>   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/upload/tests/test_upload.py", line 44, in <module>
>     Russel>     test_transport_implementations.TransportTestProviderAdapter):
>     Russel> AttributeError: 'module' object has no attribute 'TransportTestProviderAdapter'
> 
> Bad upload plugin ! Using deprecated test classes ! Oh wait, the
> plugin has been updated long ago, time to update your copy !

OK, I was at fault here in the sense that as I am running bzr.dev I
should also be running head of all the plugins instead of using the ones
in the Jaunty release.  I have no branched lp:bzr-upload.

> And nag that plugin maintainer to release a new version !

It does seem to me that In Bazaar historical terms, each Ubuntu release
is ancient history as son as it is released.  Currently there seems to
be a view with plugins that either you use the distribution version or
head -- which is fine in itself, except that bzr has introduced the
updated package as a third (intermediate) thing.  So bzr, bzrtools,
bzr-svn get packaged in the Bazaar PPA.  Other plugins definitely need
packaging here -- for example bzr-rebase, since the version in Jaunty is
inconsistent with bzr-svn on Bazaar PPA.

There is not a problem here per se, but by having all the plugins in
Jaunty (and other distributions?) have their latest version in the
Bazaar PPA we would improve the user experience for those between
"distribution as it comes" and "bzr.dev and head addicts", i.e. people
who want to work with packages but want to work with the latest
release. 

>     Vincent
> 
> [0]:It also avoid loading the tests whose ID doesn't begin with
> the specified string, which speeds up selftest starting.
-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel at russel.org.uk
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder at ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090705/c4dff86d/attachment.pgp 


More information about the bazaar mailing list