mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
7b764303a2
commit
7dc5eab037
@@ -305,8 +305,7 @@ def galactic_job_json(
|
||||
file_path = value.get("location", None) or value.get("path", None)
|
||||
if file_path is None:
|
||||
return value
|
||||
if not os.path.isabs(file_path):
|
||||
file_path = os.path.join(test_data_directory, file_path)
|
||||
file_path = abs_path_or_uri(file_path, test_data_directory, resolve_data=resolve_data)
|
||||
|
||||
file_type = value.get("filetype", None) or value.get("format", None) or "directory"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user