Files
galaxy/test/functional/tools/exit_code_from_env.xml
T

27 lines
806 B
XML

<tool id="exit_code_from_env" name="exit_code_from_env" version="1.0.0">
<!-- 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>
<tests>
<test>
<param name="input" value="5" />
<output name="out_file1">
<assert_contents>
<has_line line="Hello" />
</assert_contents>
</output>
</test>
</tests>
<help>
</help>
</tool>