Skip to content

Commit ce6c21f

Browse files
author
Nathan Azrak
committed
use subpath in tests
1 parent 482b88e commit ce6c21f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

test/run/torchx_backend/schedulers/test_kubeflow.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,11 @@ def test_submit_dryrun_with_workdir_volume_mount_and_local_path(
319319
e = KubeflowExecutor(
320320
image="nvcr.io/nvidia/nemo:26.02",
321321
volumes=[{"name": "w", "persistentVolumeClaim": {"claimName": "my-pvc"}}],
322-
workdir_volume_mount={"name": "w", "mountPath": "/nemo_run"},
322+
workdir_volume_mount={
323+
"name": "w",
324+
"mountPath": "/nemo_run",
325+
"subPath": "team-a",
326+
},
323327
workdir_local_path=local_path,
324328
)
325329
e.experiment_id = "test_exp"
@@ -353,7 +357,11 @@ def test_submit_dryrun_with_workdir_volume_mount_no_local_path(
353357
e = KubeflowExecutor(
354358
image="nvcr.io/nvidia/nemo:26.02",
355359
volumes=[{"name": "w", "persistentVolumeClaim": {"claimName": "my-pvc"}}],
356-
workdir_volume_mount={"name": "w", "mountPath": "/nemo_run"},
360+
workdir_volume_mount={
361+
"name": "w",
362+
"mountPath": "/nemo_run",
363+
"subPath": "team-a",
364+
},
357365
)
358366
e.experiment_id = "test_exp"
359367
e.job_dir = str(tmp_path)

0 commit comments

Comments
 (0)