-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18389 from mvdbeek/ensure_data_extension_if_no_ex…
…tension_specified [24.0] Assign default ``data`` extension on discovered collection output
- Loading branch information
Showing
6 changed files
with
93 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<tool id="discover_default_ext" name="discover_default_ext" version="0.1.0"> | ||
<command><![CDATA[ | ||
echo 1 > 1.txt; | ||
]]></command> | ||
<inputs /> | ||
<outputs> | ||
<collection name="collection_with_default_ext" type="list" label="with default format" format="fasta"> | ||
<discover_datasets pattern="__name_and_ext__" /> | ||
</collection> | ||
<collection name="collection_default_ext_and_explicit_format" type="list" label="with default format and static element format" format="fasta"> | ||
<discover_datasets pattern="__name__" format="txt" /> | ||
</collection> | ||
<collection name="collection_default_ext_used" type="list" label="with default format and no override" format="fasta"> | ||
<discover_datasets pattern="__name__" /> | ||
</collection> | ||
<collection name="collection_without_default_ext" type="list" label="wihtout default ext, should be data"> | ||
<discover_datasets pattern="__name__" /> | ||
</collection> | ||
</outputs> | ||
<tests> | ||
<test expect_num_outputs="4"> | ||
<output_collection name="collection_with_default_ext" type="list" count="1"> | ||
<element name="1" ftype="txt"> | ||
<assert_contents> | ||
<has_text text="1" /> | ||
</assert_contents> | ||
</element> | ||
</output_collection> | ||
<output_collection name="collection_default_ext_and_explicit_format" type="list" count="1"> | ||
<element name="1.txt" ftype="txt"> | ||
<assert_contents> | ||
<has_text text="1" /> | ||
</assert_contents> | ||
</element> | ||
</output_collection> | ||
<output_collection name="collection_default_ext_used" type="list" count="1"> | ||
<element name="1.txt" ftype="fasta"> | ||
<assert_contents> | ||
<has_text text="1" /> | ||
</assert_contents> | ||
</element> | ||
</output_collection> | ||
<output_collection name="collection_without_default_ext" type="list" count="1"> | ||
<element name="1.txt" ftype="data"> | ||
<assert_contents> | ||
<has_text text="1" /> | ||
</assert_contents> | ||
</element> | ||
</output_collection> | ||
</test> | ||
</tests> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters