Skip to content

Commit

Permalink
Merge pull request #6579 from grondo/issue#6568
Browse files Browse the repository at this point in the history
job-exec: fix confusing "job shell exec error" log message
  • Loading branch information
mergify[bot] authored Jan 24, 2025
2 parents 921ed27 + 0b12b76 commit 0836ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/modules/job-exec/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ static void error_cb (struct bulk_exec *exec, flux_subprocess_t *p, void *arg)
}
else {
jobinfo_fatal_error (job,
errnum,
0,
"%s on broker %s (rank %d): %s",
"job shell exec error",
hostname,
rank,
flux_cmd_arg (cmd, 0));
flux_subprocess_fail_error (p));
}
}
else
Expand Down
16 changes: 0 additions & 16 deletions t/t2400-job-exec-test.t
Original file line number Diff line number Diff line change
Expand Up @@ -204,20 +204,4 @@ test_expect_success FLUX_SECURITY \
flux job wait-event -vHt 15s $jobid clean &&
flux job status -vvv $jobid
'

if ! grep 'release 7' /etc/centos-release >/dev/null 2>&1 \
&& ! grep 'release 7' /etc/redhat-release >/dev/null 2>&1
then
test_set_prereq NOT_DISTRO7
fi

# The following test does not work on CentOS 7 / RHEL7 since exec errno does
# not work with job-exec (for as yet unknown reason). Skip the test on
# these distros:
test_expect_success NOT_DISTRO7 'job-exec: path to shell is emitted on exec error' '
test_expect_code 127 flux run \
--setattr=exec.job_shell=/foo/flux-shell hostname 2>exec.err &&
test_debug "cat exec.err" &&
grep /foo/flux-shell exec.err
'
test_done

0 comments on commit 0836ef6

Please sign in to comment.