[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz] Bug in test framework
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz] Bug in test framework |
Date: |
Wed, 23 Apr 2003 14:34:17 +0300 |
User-agent: |
Mutt/1.4.1i |
On Wed, Apr 23, 2003 at 10:25:05AM +0300, Tuukka Hastrup wrote:
>
> I don't know how to fix a bug we saw today in the test framework -
> running tests stopped at this:
>
> Java stack traces:
> ---------------------------------------------------------------------------
> org.nongnu.storm.impl.DirPool.testBlockTmpFile (Test that creating a
> blocktmpfile out of a block)
> Traceback (innermost last):
> File "test.py", line 195, in ?
> File "test.py", line 154, in main
> File "test.py", line 175, in run
> AttributeError: printStackTrace
> make: *** [test] Error 255
>
>
> When I commented out the printStackTrace call, the tests went through and
> I got a more helpful Python stack trace:
>
> org.nongnu.storm.impl.DirPool.testBlockTmpFile (Test that creating a
> blocktmpfile out of a block)
> Traceback (most recent call last):
> File "org/nongnu/storm/StormPool.meta", line 101, in testBlockTmpFile
> f = org.nongnu.storm.BlockTmpFile.get(block)
> AttributeError: module 'org.nongnu.storm' has no attribute 'BlockTmpFile'
>
>
> I fixed that, but don't understand how the test system should have handled
> this. Should it maybe handle Java exceptions and Python exceptions as
> either and not as both?
It should see whether it is a Java exception, and if it is, print out that
stack trace.
Tuomas