Mercurial > repos > mvdbeek > printenv
diff printenv.xml @ 3:6bcca3261112 draft default tip
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/printenv
author | mvdbeek |
---|---|
date | Fri, 12 Jan 2018 04:39:53 -0500 |
parents | 9d4a1f588ba6 |
children |
line wrap: on
line diff
--- a/printenv.xml Tue Jun 21 07:25:53 2016 -0400 +++ b/printenv.xml Fri Jan 12 04:39:53 2018 -0500 @@ -1,6 +1,13 @@ <tool id="printenv" name="printenv" version="1.0.1"> - <command><![CDATA[sleep "$sleep_seconds"s && printenv > "$output"]]></command> + <command detect_errors="exit_code"><![CDATA[ +#if $failbool: + exit 127 +#else: + sleep "$sleep_seconds"s && printenv > "$output" +#end if +]]></command> <inputs> + <param name="failbool" type="boolean" checked="False" label="Select to make the tool fail"/> <param name="sleep_seconds" type="integer" value="1" label="seconds to sleep"/> </inputs> <outputs>