mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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.
53 lines
1.9 KiB
XML
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>
|