Skip to content

Commit 9413b2a

Browse files
jmchiltonclaude
andcommitted
Fix replacement_directory to resolve via test data resolver
class: Directory + path: in CWL-style jobs only joined path with job_dir — no fallback to test-data/. Broke directory_index_1 after migrating fixtures to class/path form. Match upload_file/upload_tar by using abs_path_or_uri, which falls back to resolve_data. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c06b465 commit 9413b2a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/galaxy/tool_util/cwl/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ def replacement_directory(value: Dict[str, Any]) -> Dict[str, Any]:
305305
file_path = value.get("location", None) or value.get("path", None)
306306
if file_path is None:
307307
return value
308-
if not os.path.isabs(file_path):
309-
file_path = os.path.join(test_data_directory, file_path)
308+
file_path = abs_path_or_uri(file_path, test_data_directory, resolve_data=resolve_data)
310309

311310
file_type = value.get("filetype", None) or value.get("format", None) or "directory"
312311

0 commit comments

Comments
 (0)