Add tool test for what happens when output filter throws exception.

Run new test with:

```
./run_tests.sh -framework -id output_filter_exception_1
```

xref https://github.com/galaxyproject/tools-iuc/pull/883
xref https://github.com/galaxyproject/planemo/commit/a066afb1c2c30f4ef2c3033ab9a884b31c06e783
xref https://github.com/galaxy-iuc/standards/pull/31
This commit is contained in:
John Chilton
2016-07-19 12:10:55 -04:00
parent d944d3cd65
commit 706a76ea80
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,35 @@
<tool id="output_filter_exception_1" name="output_filter_exception_1" version="1.0.0">
<command>
echo "test" > 1;
echo "test" > 2;
echo "test" > 3;
echo "test" > 4;
echo "test" > 5;
</command>
<inputs>
<conditional name="options">
<param help="" label="Options" name="options" type="select">
<option selected="True" value="default">Use defaults</option>
<option value="advanced">Specify advanced options</option>
</param>
<when value="default" />
<when value="advanced">
<param falsevalue="" truevalue="--adv_opt1" help="" name="adv_opt1" type="boolean" />
</when>
</conditional>
</inputs>
<outputs>
<data format="txt" from_work_dir="1" name="out_1">
</data>
<data format="txt" from_work_dir="2" name="out_2">
<filter>opitons['adv_opt1'] is True</filter>
</data>
</outputs>
<tests>
<!-- Filter condition throws exception, filter "fails" and so output is produced. -->
<test expect_num_outputs="2">
<output name="out_1"><assert_contents><has_line line="test" /></assert_contents></output>
<output name="out_2"><assert_contents><has_line line="test" /></assert_contents></output>
</test>
</tests>
</tool>
@@ -41,6 +41,7 @@
<tool file="output_format.xml" />
<tool file="output_format_collection.xml" />
<tool file="output_filter.xml" />
<tool file="output_filter_exception_1.xml" />
<tool file="output_collection_filter.xml" />
<tool file="output_auto_format.xml" />
<tool file="create_10.xml" />