[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-iotests: Make debugging python tests easie
Re: [Qemu-devel] [PATCH] qemu-iotests: Make debugging python tests easier
Fri, 15 May 2015 13:48:43 -0400
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
On 05/15/2015 01:26 AM, Fam Zheng wrote:
> Adding "-d" option. The output goes to "tee" so it appears in your
> console. Also, raise the verbosity of unnitest runner.
> When testing a topic branch, it's possible that a bug introduced by a
> code change makes the python test case hang, with debug output, it is
> much easier to locate the problem.
> This can also be helpful if you want to watch the progress of a python
> test, it offers you a way to sense the speed of each test case method
> you're writing.
Unfortunately, it explodes when I run ./check -v -d -qcow2 124:
+Traceback (most recent call last):
+ File "124", line 363, in <module>
+ File "/home/bos/jhuston/src/qemu/tests/qemu-iotests/iotests.py", line
367, in main
+ sys.stderr.write(re.sub(r'Ran (\d+) tests? in [\d.]+s', r'Ran \1
+AttributeError: 'file' object has no attribute 'getvalue'
Failed 1 of 1 tests