Problems with context, and with failed tests.
Vladimir Prus
ghost at cs.msu.su
Mon Jan 21 10:49:21 UTC 2002
Hi,
1. Suppose that I run somewhere the following commnad:
qmtest -D tdb run -c root=/home/ghost/Work/nm_model asm.echo
"asm.echo" is test.ShellCommandTest with command set to
echo "Foobar" ${QMV_root}
The test of course fails and result.qmr reads:
<property name='ExecTest.stdout'>'''Foobar /home/ghost/Work/nm_model
'''</property>
I then make a file QMcontext, containing the following:
root=/home/ghost/Work/nm_model
nm_dir=/home/ghost/Work/nmsdk_shadow
And then I run:
qmtest -D tdb run -C QMcontext asm.echo
No errors about the context file are given, but results.qmr now reads:
<property name='ExecTest.stdout'>'''Foobar
'''</property>
What happened with the QMV_root variable?
2. I try to run a test suite called "asm". Only 2 tests of 7 are actually
run, after which I get:
Traceback (most recent call last):
File "/home/ghost/local/lib/qm/qm/test/qmtest.py", line 94, in ?
command.Execute(sys.stdout)
File "/lib/qm/qm/test/cmdline.py", line 410, in Execute
File "/lib/qm/qm/test/cmdline.py", line 784, in __ExecuteRun
File "/lib/qm/qm/test/execution_engine.py", line 126, in Run
File "/lib/qm/qm/test/execution_engine.py", line 215, in _RunTests
File "/lib/qm/qm/test/execution_engine.py", line 237, in _CheckForResponse
File "/lib/qm/qm/test/execution_engine.py", line 317, in _AddResult
File "/home/ghost/local/lib/qm/qm/test/xml_result_stream.py", line 68, in
WriteResult
element = result.MakeDomNode(self.__document)
File "/lib/qm/qm/test/result.py", line 283, in MakeDomNode
TypeError: loop over non-sequence
This should not happen, I suppose?
Regards,
Vladimir
More information about the qmtest
mailing list