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:
John Chilton
2026-04-22 09:53:59 -04:00
co-authored by Claude Opus 4.7
parent 7b764303a2
commit 7dc5eab037
+1 -2
View File
@@ -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"