Test suite broken by strace in bzr.dev

Aaron Bentley aaron.bentley at utoronto.ca
Tue Apr 3 14:34:28 BST 2007


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

Robert Collins wrote:
> On Wed, 2007-03-28 at 09:47 -0400, Aaron Bentley wrote:
>> Something funky is happening with the strace tests.
>>
>> $ ./bzr selftest test_str
>>        bzr: /home/abentley/bzr/bzr.ab.integration/bzr
>>     bzrlib: /home/abentley/bzr/bzr.ab.integration/bzrlib
>>
> 
> I've noticed this, will investigate. Its probably a rogue signal handler
> from another test (bzr selftest strace works fine).

This behavior doesn't happen on Sarge.  (I ran the whole test suite twice.)

If I run just "bzr selftest strace", I *occasionally* get this:

Traceback (most recent call last):
  File "/home/abentley/bzr/bzr.dev/bzrlib/tests/test_strace.py", line
68, in test_strace_result_has_raw_log
    self.assertContainsRe(result.raw_log, 'myfile')
  File "/home/abentley/bzr/bzr.dev/bzrlib/tests/__init__.py", line 834,
in assertContainsRe
    raise AssertionError('pattern "%r" not found in "%r"'
AssertionError: pattern "'myfile'" not found in "''"

So far, I've only gotten it once, on my second "bzr selftest strace" run.

> just kill -CONT bzr to resume the tests.

Sometimes Unix is funny.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGElfk0F+nu1YWqI0RAjPOAJ4l8zqITL3HzJNhwzQqdrN0y361twCggVaT
MpeLGy+uquL0Y8aG67Rw8Pg=
=YwwM
-----END PGP SIGNATURE-----



More information about the bazaar mailing list