From bf2f290c770ece10b02cc4f1535f14dc936701c4 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 17 Oct 2024 15:59:38 -0400 Subject: [PATCH] Cleanup stock tool sources parsed in galaxy.tools.stock. Was causing a randomly failing test. --- lib/galaxy/tools/stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/tools/stock.py b/lib/galaxy/tools/stock.py index 1a86354f1370..2fdb6f6a3d9c 100644 --- a/lib/galaxy/tools/stock.py +++ b/lib/galaxy/tools/stock.py @@ -26,7 +26,8 @@ def stock_tool_sources(): def _walk_directory_for_tools(path): - if path.is_file() and path.name.endswith(".xml"): + # Skip macros and tool data files that are not actuall Galaxy XML tools. + if path.is_file() and path.name.endswith(".xml") and "macros" not in path.name and "_conf.xml" not in path.name: yield path elif path.is_dir(): for directory in path.iterdir():