Files
galaxy/test/functional/tools/detect_errors_aggressive.xml
T
mvdbeek 4912f7a97d Don't unhide mapped-over outputs when job fails
The parent dataset collection now shows the failed datasets,
and that is much easier to deal with when all jobs within
a large collection have failed.
Fixes https://github.com/galaxyproject/galaxy/issues/7492

One downside here is that we don't see anything in the history right
away (except for the failed dataset count) if a hidden collection
contains failed datasets.
2019-03-30 14:49:59 +01:00

53 lines
1.9 KiB
XML

<tool id="detect_errors_aggressive" name="detect_errors_aggressive" version="1.0.0">
<command detect_errors="aggressive">
#if $error_bool
echo "ERROR: Problem...."
#elif $exception_bool
echo "Exception: Problem..."
#else
echo "Everything is OK."
#end if
; sh -c "exit $exit_code"
</command>
<inputs>
<param name="dataset" type="data" optional="true"/>
<param name="error_bool" type="boolean" label="error bool" />
<param name="exception_bool" type="boolean" label="exception bool" checked="false" />
<param name="exit_code" type="integer" value="0" label="exit code"/>
</inputs>
<outputs>
<data name="out_file1" />
</outputs>
<tests>
<test expect_exit_code="0" expect_failure="false">
<param name="error_bool" value="false" />
<param name="exception_bool" value="false" />
<param name="exit_code" value="0" />
<assert_stdout>
<has_line line="Everything is OK." />
</assert_stdout>
</test>
<test expect_exit_code="1" expect_failure="true">
<param name="error_bool" value="false" />
<param name="exception_bool" value="false" />
<param name="exit_code" value="1" />
<assert_stdout>
<has_line line="Everything is OK." />
</assert_stdout>
</test>
<test expect_exit_code="0" expect_failure="true">
<param name="error_bool" value="true" />
<param name="exception_bool" value="false" />
<param name="exit_code" value="0" />
</test>
<test expect_exit_code="0" expect_failure="true">
<param name="error_bool" value="false" />
<param name="exception_bool" value="true" />
<param name="exit_code" value="0" />
</test>
</tests>
<help>
</help>
</tool>