Skip to content

Commit

Permalink
testsuite: ensure Rv1 test object is RFC 20 compliant
Browse files Browse the repository at this point in the history
Problem: An R object used for alloc-bypass in the testsuite
doesn't contain the nodelist key, which trips up the job shell.

Ensure the Rv1 object is compliant with RFC 20, which requires
that nodelist is present.
  • Loading branch information
grondo committed Dec 18, 2024
1 parent ee66ea6 commit 7e65d35
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions t/t2604-job-shell-affinity.t
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,23 @@ test_expect_success 'flux-shell: load alloc-bypass jobtap plugin' '
'
test_expect_success 'flux-shell: create multi-gpu R' '
cat >R.gpu <<-EOF
{"version": 1, "execution":{ "R_lite":[
{ "children": { "core": "0-1", "gpu": "0-3" }, "rank": "0" }
]}}
{
"version": 1,
"execution": {
"R_lite": [
{
"children": {
"core": "0-1",
"gpu": "0-3"
},
"rank": "0"
}
],
"nodelist": [
"$(hostname)"
]
}
}
EOF
'
test_expect_success 'flux-shell: gpu-affinity works by default' '
Expand Down

0 comments on commit 7e65d35

Please sign in to comment.