Skip to content

Commit

Permalink
Merge pull request flux-framework#6372 from grondo/issue#6371
Browse files Browse the repository at this point in the history
sched-simple: improve unsupported resource type exception
  • Loading branch information
mergify[bot] authored Oct 15, 2024
2 parents 2dbc16b + 037455b commit 390ebe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/sched-simple/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobreq_create (const flux_msg_t *msg)
else if (job->jj.slot_gpus > 0) {
snprintf (job->jj.error,
sizeof (job->jj.error),
"Unsupported resource type 'gpu'");
"sched-simple does not support resource type 'gpu'");
errno = EINVAL;
job->errnum = errno;
}
Expand Down
3 changes: 2 additions & 1 deletion t/t2300-sched-simple.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ test_expect_success 'sched-simple: unsatisfiable request is canceled' '
test_expect_success 'sched-simple: gpu request is canceled' '
jobid=$(flux run -n1 -g1 --dry-run hostname | flux job submit) &&
flux job wait-event --timeout=5.0 $jobid exception &&
flux job eventlog $jobid | grep "Unsupported resource type .gpu."
flux job eventlog $jobid \
| grep "sched-simple does not support resource type .gpu."
'
Y2J="flux python ${SHARNESS_TEST_SRCDIR}/jobspec/y2j.py"
SPEC=${SHARNESS_TEST_SRCDIR}/jobspec/valid/basic.yaml
Expand Down

0 comments on commit 390ebe6

Please sign in to comment.