Skip to content

Commit 324930d

Browse files
committed
parse tool profile once before validating tests
1 parent c123c35 commit 324930d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/galaxy/tool_util/verify/parse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def _description_from_tool_source(
135135

136136
tool_id, tool_version = _tool_id_and_version(tool_source, tool_guid)
137137
processed_test_dict: Union[ValidToolTestDict, InvalidToolTestDict]
138+
profile = tool_source.parse_profile()
138139
try:
139140
processed_inputs = _process_raw_inputs(
140141
tool_source,
@@ -144,7 +145,6 @@ def _description_from_tool_source(
144145
required_data_tables,
145146
required_loc_files,
146147
)
147-
profile = tool_source.parse_profile()
148148
processed_test_dict = ValidToolTestDict(
149149
{
150150
"inputs": processed_inputs,
@@ -172,7 +172,6 @@ def _description_from_tool_source(
172172
}
173173
)
174174
except Exception:
175-
profile = tool_source.parse_profile()
176175
processed_test_dict = InvalidToolTestDict(
177176
{
178177
"tool_id": tool_id,

0 commit comments

Comments
 (0)