Skip to content

Commit 7c9f7ed

Browse files
committed
updating br unit tests to reflect changes to rysnc script
1 parent fb152f0 commit 7c9f7ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_br.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,16 @@ def test_create_job_nowait(
7474
"activeDeadlineSeconds": 900,
7575
"template": {
7676
"spec": {
77-
"maximumExecutionTimeSeconds": 900,
7877
"restartPolicy": "Never",
7978
"containers": [
8079
{
8180
"name": "job-v100-123-container",
8281
"image": "image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/csw-run-f25:latest",
8382
"command": [
84-
"/bin/sh",
83+
"/bin/bash",
8584
"-c",
86-
f"\nexport RSYNC_RSH='oc rsh -c container1'\n\nmkdir -p job-v100-123 && \n rsync -q --archive --no-owner --no-group --omit-dir-times --numeric-ids testhost:{tempdir}/jobs/job-v100-123/getlist job-v100-123/getlist >&/dev/null &&\n rsync -q -r --archive --no-owner --no-group --omit-dir-times --numeric-ids --files-from=job-v100-123/getlist testhost:{tempdir}/ job-v100-123/ &&\n find job-v100-123 -mindepth 1 -maxdepth 1 > job-v100-123/gotlist &&\n cd job-v100-123 && \n |& tee job-v100-123.log\n\ncd ..\nrsync -q --archive --no-owner --no-group --omit-dir-times --no-relative --numeric-ids --exclude-from=job-v100-123/gotlist job-v100-123 testhost:{tempdir}/jobs\n",
87-
],
85+
f"\nset -e\nexport RSYNC_RSH='oc rsh -c container1'\n\nmkdir -p job-v100-123\n\nrsync -q --archive --no-owner --no-group --omit-dir-times --numeric-ids testhost:{tempdir}/jobs/job-v100-123/getlist job-v100-123/getlist\nrsync -q -r --archive --no-owner --no-group --omit-dir-times --numeric-ids --files-from=job-v100-123/getlist testhost:{tempdir}/ job-v100-123/\nfind job-v100-123 -mindepth 1 -maxdepth 1 > job-v100-123/gotlist\n\n(\n cd job-v100-123 && |& tee job-v100-123.log\n)\n\nrsync -q --archive --no-owner --no-group --omit-dir-times --no-relative --numeric-ids --exclude-from=job-v100-123/gotlist job-v100-123 testhost:{tempdir}/jobs\n",
86+
],
8887
"resources": {
8988
"requests": {"nvidia.com/gpu": "1"},
9089
"limits": {"nvidia.com/gpu": "1"},

0 commit comments

Comments
 (0)