Skip to content

Commit af96d31

Browse files
authored
Merge pull request #6841 from grondo/t2602-fix
testsuite: fix potential failure in `t2602-job-shell.t`
2 parents 77f472d + 03fe63f commit af96d31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t2602-job-shell.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ test_expect_success 'job-shell: reads J not jobspec' '
2828
flux job urgency ${id} default &&
2929
flux job attach -vEX ${id}
3030
'
31-
31+
# Note: J.new sent on stdin to `flux kvs put` below to avoid overflowing
32+
# maximum argument length.
3233
test_expect_success 'job-shell: fails on modified J' '
3334
id=$(flux submit --wait-event=priority \
3435
-n1 --urgency=hold true) &&
3536
flux job info ${id} J | sed s/./%/85 > J.new &&
36-
flux kvs put \
37-
$(flux job id --to=kvs ${id}).J="$(cat J.new)" &&
37+
cat J.new | flux kvs put --raw $(flux job id --to=kvs ${id}).J=- &&
3838
flux job urgency ${id} default &&
3939
test_must_fail flux job attach -vEX ${id}
4040
'

0 commit comments

Comments
 (0)