Files
galaxy/test/functional/tools/exit_code_from_env.xml
T
2025-03-26 18:07:57 +01:00

22 lines
656 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:-1} &&
exit \${GX_TARGET_EXIT_CODE:-1}
]]></command>
<inputs>
<param name="input" type="integer" label="Dummy" value="6" />
</inputs>
<outputs>
<data name="out_file1" />
</outputs>
<tests>
<test expect_failure="true">
<param name="input" value="5" />
</test>
</tests>
<help>
</help>
</tool>