Skip to content

Commit fa2f40c

Browse files
committed
testsuite: test flux-alloc handling of output eventlog events
Problem: There are no tests in the testsuite that ensure log messages are not suppressed by flux-alloc. Add a couple simple tests to verify that `flux alloc` doesn't suppress error messages while not duplicating any output.
1 parent 1bf5a3f commit fa2f40c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t2712-python-cli-alloc.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,13 @@ test_expect_success 'flux alloc: --dump=FILE works with mustache' '
143143
flux job wait-event $jobid clean &&
144144
tar tvf testdump-${jobid}.tgz
145145
'
146+
test_expect_success 'flux alloc: does not suppress log messages' '
147+
$runpty -o logmsgs.out flux alloc -n1 --cwd=/noexist pwd &&
148+
grep -i "going to /tmp instead" logmsgs.out
149+
'
150+
test_expect_success 'flux alloc: no duplication of output with pty.capture' '
151+
$runpty -o duplicates.out flux alloc -o pty.capture -n1 echo testing &&
152+
test $(grep -c testing duplicates.out) -eq 1
153+
'
146154

147155
test_done

0 commit comments

Comments
 (0)