mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
- Update explicit stdio definitions as well as detect_errors-based definitions to allow this. - Update runner code to allow resubmission in such cases.
34 lines
953 B
XML
34 lines
953 B
XML
<tool id="exit_code_oom" name="exit_code_oom">
|
|
<!-- 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';
|
|
echo "\$GALAXY_MEMORY_MB";
|
|
: \${GALAXY_MEMORY_MB:=20};
|
|
echo "\$GALAXY_MEMORY_MB";
|
|
if [ "\$GALAXY_MEMORY_MB" -lt 10 ];
|
|
then
|
|
exit 42;
|
|
else
|
|
exit 0;
|
|
fi
|
|
]]></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>
|