Skip to content

Commit dd1b2f9

Browse files
committed
testsuite: test for shell output truncation in t9000-system.t
Problem: There is no test that ensures the job shell truncates output to 10M by default for guest jobs in a multiuser instance. Add a test to t9000-system.t that ensures output is truncated in this case.
1 parent f9c6c48 commit dd1b2f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/system/0001-basic.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ test_expect_success 'flux jobs lists job with correct userid' '
1515
test_expect_success 'flux proxy can submit jobs to system instance' '
1616
flux proxy $(flux getattr local-uri) flux submit true
1717
'
18+
test_expect_success 'flux-shell limits kvs output to 10M for guest jobs' '
19+
dd if=/dev/urandom bs=10240 count=800 | base64 --wrap 79 >large.in &&
20+
flux run -vvv cat large.in >large.out 2>trunc.err &&
21+
ls -lh large* &&
22+
test_debug "cat trunc.err" &&
23+
grep "stdout.*truncated" trunc.err
24+
'

0 commit comments

Comments
 (0)