Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 2, 2024
1 parent 3b693e9 commit 513066b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lib/galaxy/tools/stock.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
"""Reason about stock tools based on ToolSource abstractions."""

from pathlib import Path

from lxml.etree import XMLSyntaxError

# Set GALAXY_INCLUDES_ROOT from tool shed to point this at a Galaxy root
# (once we are running the tool shed from packages not rooted with Galaxy).
import galaxy.tools
from galaxy.tool_util.parser import get_tool_source
from galaxy.util import galaxy_root_path
from galaxy.util import galaxy_directory
from galaxy.util.resources import files


def stock_tool_paths():
yield from _walk_directory_for_tools(files(galaxy.tools))
yield from _walk_directory_for_tools(galaxy_root_path / "test" / "functional" / "tools")
yield from _walk_directory_for_tools(Path(galaxy_directory()) / "test" / "functional" / "tools")


def stock_tool_sources():
Expand All @@ -23,7 +25,6 @@ def stock_tool_sources():
continue



def _walk_directory_for_tools(path):
if path.is_file() and path.name.endswith(".xml"):
yield path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="gx_select_multiple" name="gx_select_multiple" version="1.0.0">
<tool id="gx_select_multiple_optional" name="gx_select_multiple_optional" version="1.0.0">
<command><![CDATA[
echo '$parameter' >> '$output'
]]></command>
Expand All @@ -16,10 +16,10 @@ echo '$parameter' >> '$output'
</outputs>
<tests>
<test>
<param name="parameter" value="12456" />
<param name="parameter" value="ex2" />
<output name="output">
<assert_contents>
<has_line line="12456" />
<has_line line="ex2" />
</assert_contents>
</output>
</test>
Expand Down

0 comments on commit 513066b

Please sign in to comment.