running 'bzr selftest' on windows

Alexander Belchenko bialix at ukr.net
Sat Feb 27 15:06:56 GMT 2010


Vincent Ladeuil пишет:
>>>>>> "Matt" == Matt Nordhoff <mnordhoff at mattnordhoff.com> writes:
> 
>     Matt> Parth Malwankar wrote:
> 
> <snip/>
> 
>     >> Just for my understanding, whats the "bp." part in the above command?
> 
>     Matt> It's shorthand for "bzrlib.plugins". I don't know if
>     Matt> there's a list of all of the shortcuts,
> 
> You found it :)
> 
>     Matt> but you can check bzrlib/tests/__init__.py:
> 
>     Matt> test_prefix_alias_registry.register('bd', 'bzrlib.doc')
>     Matt> test_prefix_alias_registry.register('bu', 'bzrlib.utils')
>     Matt> test_prefix_alias_registry.register('bt', 'bzrlib.tests')
>     Matt> test_prefix_alias_registry.register('bb', 'bzrlib.tests.blackbox')
>     Matt> test_prefix_alias_registry.register('bp', 'bzrlib.plugins')
> 
> A comment above this line says:
> 
>   # Obvious highest levels prefixes, feel free to add your own via a plugin
> 
> So you can do:
> 
>   bzrlib.tests.test_prefix_alias_registry.register('grep', 'bzrlib.plugins.grep')
> 
> And use:
> 
>   bzr selftest -s grep
> 
> To avoid excessive pollution of the name space, you may do that in
> an another dedicated plugin though.


And then provide another plugin to test this second plugin, and so on, 
so on, so on... :-)




More information about the bazaar mailing list