Conversation
There was a problem hiding this comment.
I have not tested separately with my ocrd network configuration when reviewing. However, if the workspace paths resolve correctly with your network configuration, that should be good enough to be merged. After the new core release, I will still have to verify with the Operandi setup afterwards.
EDIT: To fix the single failing error, it should suffice to just remove the first 6 characters from the test string in this line.
| args=["ocrd", "workspace", "-U", f"{mets_server_url}", "-d", f"{ws_dir_path}", "server", "start"], | ||
| stdout=open(file=log_file, mode="w"), stderr=open(file=log_file, mode="a"), cwd=ws_dir_path, | ||
| stdout=open(file=log_file, mode="w"), stderr=open(file=log_file, mode="a"), | ||
| #cwd=ws_dir_path, # rs: if relative, this will cause wrong path resolution in the subprocess |
There was a problem hiding this comment.
Good point! Potentially setting the current working directory to workspace directory path was the only way to make it work without changing/fixing the Workspace class itself or the workspace CLI. However, that had other side effects leading to a different bug.
There was a problem hiding this comment.
fixes #1213