Skip to content

Commit 3bbe90f

Browse files
committed
testsuite: test flux-watch(1) with binary output
Problem: Handling of binary output with flux-watch(1) is not tests. Add a test that ensures flux-watch(1) can handle binary data end-to-end.
1 parent 21126a3 commit 3bbe90f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t2813-flux-watch.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,11 @@ test_expect_success 'flux-watch: --filter works' '
130130
test_debug "cat failed.out" &&
131131
grep "Watching ${nfailed} job" failed.out
132132
'
133+
test_expect_success 'flux-watch: handles binary data' '
134+
id=$(flux submit dd if=/dev/urandom count=1) &&
135+
test_debug "flux job eventlog -p guest.output -HL $id" &&
136+
flux job attach $id >binary.expected &&
137+
flux watch $id >binary.output &&
138+
test_cmp binary.expected binary.output
139+
'
133140
test_done

0 commit comments

Comments
 (0)