Skip to content
Snippets Groups Projects
Commit 609350a3 authored by Robert Rosca's avatar Robert Rosca
Browse files

Symlinks for `raw` dir not run dir

parent e20c912f
No related branches found
No related tags found
1 merge request!670Check for transfer conditional on resolved symlink path
This commit is part of merge request !646. Comments created here will be created in the context of that merge request.
......@@ -104,19 +104,22 @@ async def test_wait_on_transfer(
expected_error = run_links_to not in repositories
gpfs_prefix = tmp_root / "gpfs/exfel/d"
gpfs_dir = gpfs_prefix / f"raw/{inst}/{cycle}/p{prop_no}/r{run_no}"
gpfs_dir = gpfs_prefix / f"raw/{inst}/{cycle}/p{prop_no}"
gpfs_dir.mkdir(parents=True)
pnfs_prefix = tmp_root / "pnfs/xfel.eu/exfel/archive/XFEL"
pnfs_dir = pnfs_prefix / f"raw/{inst}/{cycle}/p{prop_no}/r{run_no}"
pnfs_dir = pnfs_prefix / f"raw/{inst}/{cycle}/p{prop_no}"
pnfs_dir.mkdir(parents=True)
run_path = tmp_root / f"gpfs/exfel/exp/{inst}/{cycle}/p{prop_no:06d}/raw/r{run_no:04d}"
run_path.parent.mkdir(parents=True)
raw_path = tmp_root / f"gpfs/exfel/exp/{inst}/{cycle}/p{prop_no:06d}/raw"
raw_path.parent.mkdir(parents=True)
if run_links_to == "XFEL_GPFS_OFFLINE_RAW_CC":
run_path.symlink_to(gpfs_dir)
raw_path.symlink_to(gpfs_dir)
else:
run_path.symlink_to(pnfs_dir)
raw_path.symlink_to(pnfs_dir)
run_path = raw_path / "r{run_no:04d}"
run_path.mkdir(parents=True)
response = mock.Mock()
response.status_code = 200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment