Skip to content

Commit

Permalink
testsuite: run mpiexec.hydra -outfile
Browse files Browse the repository at this point in the history
Problem: occasionally mpiexec output from spawned tasks
is lost, causing tests to fail sporadically.

Instead of redirecting stdout, use the mpiexec -outfile
option to let mpiexec redirect the output internally.

Maybe this will fix flux-framework#1169
  • Loading branch information
garlick committed Oct 13, 2018
1 parent 1055f20 commit 4bc8e24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/t2004-hydra.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ test_expect_success 'Hydra runs hello world' '
count_uniq_lines() { sort $1 | uniq | wc -l; }

test_expect_success 'Hydra sets PMI_FD to unique value' '
mpiexec.hydra -launcher fork -n 4 printenv PMI_FD > out &&
mpiexec.hydra -launcher fork -n 4 -outfile out printenv PMI_FD &&
test_debug "cat out" &&
test $(count_uniq_lines out) -eq 4
'

test_expect_success 'Hydra sets PMI_RANK to unique value' '
mpiexec.hydra -launcher fork -n 4 printenv PMI_RANK > out2 &&
mpiexec.hydra -launcher fork -n 4 -outfile out2 printenv PMI_RANK &&
test_debug "cat out2" &&
test $(count_uniq_lines out2) -eq 4
'

test_expect_success 'Hydra sets PMI_SIZE to uniform value' '
mpiexec.hydra -launcher fork -n 4 printenv PMI_SIZE > out3 &&
mpiexec.hydra -launcher fork -n 4 -outfile out3 printenv PMI_SIZE &&
test_debug "cat out3" &&
test $(count_uniq_lines out3) -eq 1
'
Expand All @@ -42,8 +42,8 @@ test_expect_success 'Flux libpmi-client wire protocol works with Hydra' '
'

test_expect_success 'Hydra can launch Flux' '
mpiexec.hydra -launcher fork -n 4 flux start \
flux comms info >flux_out &&
mpiexec.hydra -launcher fork -n 4 -outfile flux_out flux start \
flux comms info &&
test_debug "cat flux_out" &&
grep size=4 flux_out
'
Expand Down

0 comments on commit 4bc8e24

Please sign in to comment.