[ET Trac] [Einstein Toolkit] #886: SimFactory does not correctly detect a failed submit command
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed May 9 17:01:32 CDT 2012
#886: SimFactory does not correctly detect a failed submit command
------------------------+---------------------------------------------------
Reporter: hinder | Owner: eschnett
Type: defect | Status: new
Priority: major | Milestone:
Component: SimFactory | Version:
Keywords: |
------------------------+---------------------------------------------------
If qsub can't be found, simfactory doesn't notice that the command
returned a nonzero exit code, and proceeds to return 0 itself. The submit
command is in simrestart.py:
{{{
output = simlib.ExecuteCommand(submitCommand, output=True)
}}}
This should check that the exit code is zero, or fail noisily. What it
actually does is
{{{
fd = os.popen(command)
output = fd.read()
fd.close()
return output
}}}
Apart from the weird reuse of the output input argument as a return value
for something else, it is not checking the exit code in the case where the
output was requested.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/886>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list