Default hook state and the test suite

Gordon Tyler gordon at doxxx.net
Tue Oct 19 23:41:23 BST 2010


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

On 10/19/2010 9:43 AM, John Arbash Meinel wrote:
> On 10/18/2010 6:30 PM, Gordon Tyler wrote:
>> On 10/18/2010 5:35 PM, John Arbash Meinel wrote:
>>> I'm worried about a whole in our testing setup. Specifically, we have at
>>> least one case where by default we have a hook installed at runtime (by
>>> bzrlib), and the test suite defaults to clearing all hooks. It means
>>> that we aren't testing the "stock" behavior. Which was the point of
>>> clearing the hooks (so that plugins wouldn't cause test failures when
>>> they hook in for extra information.)
> 
>> Perhaps selftest should disable plugins unless --enable-plugins is supplied?
> 
> Then you can't run the plugin tests... Which ideally we would get back
> to having all plugin tests run clean as well.

Perhaps I'm lacking some context here. Whether plugins are enabled or
not seems to me to be a function of who/what is running the tests. A
plugin author would run selftest with plugins enabled because they want
to test their plugin. Babune would run selftest with plugins disabled
because there you're more concerned with core functionality, right? And
Babune could even run selftest a second time with plugins enabled as
part of an integration build, using the set of plugins that are included
with the installers.

Ciao,
Gordon


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

iQEcBAEBAgAGBQJMvh6TAAoJEIrPJfWinA2uOe4IAJno1oZtEgHZsJLTQOuBlc3Q
UjysgoMvbe3PjHrLSsqYRHhoObNXfl1plbcslJufOcTDOafc1+CHcF2zf2iSY5pp
5fPe73Kp1zgqwUA+KzRzIDApqxj4julephxwtyau5JaAIo+9xJ2K1R9Li128GsHQ
3FK2K8KQLS0KpEN3OxCVt1OAfkQoUsV3C+GeStyWbRIPlh7//BN25QtsQw3UdF8r
tnO1a0PfbG2+L8ZhezhwBz7xYFyjdvJH+xPdje48zJHbRHxvtjlAzmZJVta/tkN2
KZOQPlQnVn6iQAs/qjR1RCPEq7jVRp+ACIh77JwevLmZ9Ltpd7LT0fH1pdvM1KQ=
=a9uY
-----END PGP SIGNATURE-----



More information about the bazaar mailing list