Tutorial script gave me an outcome of 'ERROR'
Troy McGuire
troy at spawnordie.com
Sat Oct 21 02:19:00 UTC 2006
Hello Everyone!
I just found QMTest yesterday and started the tutorial after installing
it today. I was following along with the tutorial on QMTest when I got
to this section:
http://www.codesourcery.com/public/qmtest/qm-2.3/manual.html/sec-testtut-modifying.html
After following the instructions I got a result of 'ERROR' for the
outcome of the test created on the page above. I'm not sure if I messed
up somewhere (the tutorial has been quite accurate so far), if so, I'd
like to know where I made my mistake.
Here is the output from the "Details" link of the "command.test1" test:
Outcome Cause
ERROR An exception occurred.
Annotation Value
qmtest.end_time 2006-10-21T01:58:37Z
qmtest.exception exceptions.OSError: [Errno 3] No such process
qmtest.start_time 2006-10-21T01:58:37Z
qmtest.target local
qmtest.traceback
File "/usr/lib/python2.4/site-packages/qm/test/target.py", line 225,
in RunTest
descriptor.Run(context, result)
File "/usr/lib/python2.4/site-packages/qm/test/database.py", line 256,
in Run
self._Execute(context, result, "Run")
File "/usr/lib/python2.4/site-packages/qm/test/database.py", line 178,
in _Execute
methobj(context, result)
File "/usr/lib/python2.4/site-packages/qm/test/classes/command.py",
line 397, in Run
self.RunProgram(arguments[0], arguments, context, result)
File "/usr/lib/python2.4/site-packages/qm/test/classes/command.py",
line 221, in RunProgram
exit_status = e.Run(arguments, environment, path = program)
File "/usr/lib/python2.4/site-packages/qm/executable.py", line 548, in Run
path)
File "/usr/lib/python2.4/site-packages/qm/executable.py", line 257, in Run
child = self.Spawn(arguments, environment, dir, path, exception_pipe)
File "/usr/lib/python2.4/site-packages/qm/executable.py", line 209, in
Spawn
self._HandleChild()
File "/usr/lib/python2.4/site-packages/qm/executable.py", line 714, in
_HandleChild
super(RedirectedExecutable, self)._HandleChild()
File "/usr/lib/python2.4/site-packages/qm/executable.py", line 492, in
_HandleChild
os.setpgid(self.__monitor_pid, child_pid)
************** END OF STACK ***************
Here is the source code created from following the steps of the tutorial:
<?xml version="1.0" ?>
<!DOCTYPE extension
PUBLIC '-//QM/2.3/Extension//EN'
'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<extension class="command.ShellCommandTest" kind="test"><argument
name="stdin"><text/></argument><argument
name="timeout"><integer>-1</integer></argument><argument
name="stdout"><text>test</text></argument><argument
name="prerequisites"><set/></argument><argument
name="target_group"><text>.*</text></argument><argument
name="exit_code"><integer>0</integer></argument><argument
name="environment"><set/></argument><argument name="command"><text>echo
test</text></argument><argument
name="stderr"><text/></argument><argument
name="resources"><set/></argument></extension>
Thanks to anyone that can help me out here!
-Troy
troy at spawn or die dt com
More information about the qmtest
mailing list