mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Newer tool formats (CWL and YAML just enable this by default), but XML tools can add a strict="true" to the command block to force "set -e" handling on the shell part of tool execution. Run the framework tests verifying the new and older default behavior using the following commands: ``` ./run_tests.sh -framework -id strict_shell_default_off ./run_tests.sh -framework -id strict_shell ```
21 lines
580 B
XML
21 lines
580 B
XML
<tool id="strict_shell_default_off" name="strict_shell_default_off" version="1.0.0">
|
|
<command detect_errors="exit_code">
|
|
echo "Hello" > $out_file1
|
|
; sh -c "exit $exit_code"
|
|
; sh -c "exit 0"
|
|
</command>
|
|
<inputs>
|
|
<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="exit_code" value="1" />
|
|
</test>
|
|
</tests>
|
|
<help>
|
|
</help>
|
|
</tool>
|