not testtools module on all build farm server

Jelmer Vernooij jelmer at samba.org
Fri Nov 12 13:24:17 MST 2010


On Fri, 2010-11-12 at 12:26 +0300, Matthieu Patou wrote:
> Hi All,
> 
> Some of the tests use the testtools module and it's not available on all 
> the plateforms and we face such kind of errors:
> 
> samba4.ldap.bind(dc)
> failed
> 
> progress: push
> time: 2010-11-12 11:56:14.000000Z
> Traceback (most recent call last):
>    File "/hyperspace/scratch/build_farm/samba_4_0_test/source4/auth/credentials/tests/bind.py", line 15, in<module>
>      samba.ensure_external_module("subunit", "subunit/python")
>    File "bin/python/samba/__init__.py", line 319, in ensure_external_module
>      __import__(modulename)
>    File "../selftest/../lib/subunit/python/subunit/__init__.py", line 128, in<module>
>      from testtools import content, content_type, ExtendedToOriginalDecorator
> ImportError: No module named testtools
> time: 2010-11-12 11:56:14.000000Z
> progress: pop
> command: python /hyperspace/scratch/build_farm/samba_4_0_test/source4/auth/credentials/tests/bind.py $SERVER -U"$USERNAME%$PASSWORD" 2>&1 | ../selftest/filter-subunit --fail-on-empty --prefix="samba4.ldap.bind(dc)."
> expanded command: python /hyperspace/scratch/build_farm/samba_4_0_test/source4/auth/credentials/tests/bind.py localdc -U"Administrator%locDCpass1" 2>&1 | ../selftest/filter-subunit --fail-on-empty --prefix="samba4.ldap.bind(dc)."
> Exit code was 1 How can we fix this ? build this module on our own ? 
These modules need to call the same helper function that's being called
from all other python tests, to make sure that testtools is in the
sys.path:

samba.ensure_external_module("testtools", "testtools")

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101112/b99aefb2/attachment.pgp>


More information about the samba-technical mailing list