Files
galaxy/test/functional/tools/exit_code_from_env.xml
T
John Chilton a2b7521140 Fix resubmission on tool error detection.
Parts of this were wired up before but pieces were missing and so it was broken.
2018-11-23 14:32:04 +01:00

27 lines
811 B
XML

<tool id="exit_code_from_env" name="exit_code_from_env">
<!-- tool errors out with identified OOM error if less than 10MB are allocated. -->
<command detect_errors="exit_code" oom_exit_code="42"><![CDATA[
echo 'Hello' > '$out_file1';
: \${GX_TARGET_EXIT_CODE:-0};
exit \${GX_TARGET_EXIT_CODE};
]]></command>
<inputs>
<param name="input" type="integer" label="Dummy" value="6" />
</inputs>
<outputs>
<data name="out_file1" />
</outputs>
<help>
</help>
<tests>
<test>
<param name="input" value="5" />
<output name="out_file1">
<assert_contents>
<has_line line="Hello" />
</assert_contents>
</output>
</test>
</tests>
</tool>