From 42f01cedbef1ed26e001cbf5f1e9fbf38f868708 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Sun, 22 Dec 2019 18:14:32 -0800 Subject: [PATCH] testsuite/t2004-hydra.t Problem: hydra tests fail occasionally As noted in #1169, some versions of hydra might have a problem capturing stdio, which makes these tests unreliable. Drop the tests that are just verifying hydra's PMI behavior, and make the ones that remain not dependent on stdio. Fixes #1169 --- t/t2004-hydra.t | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/t/t2004-hydra.t b/t/t2004-hydra.t index 276bfa5e9948..50ffccd82a89 100755 --- a/t/t2004-hydra.t +++ b/t/t2004-hydra.t @@ -19,33 +19,12 @@ 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 -n 4 printenv PMI_FD > out && - test_debug "cat out" && - test $(count_uniq_lines out) -eq 4 -' - -test_expect_success 'Hydra sets PMI_RANK to unique value' ' - mpiexec.hydra -n 4 printenv PMI_RANK > out2 && - test_debug "cat out2" && - test $(count_uniq_lines out2) -eq 4 -' - -test_expect_success 'Hydra sets PMI_SIZE to uniform value' ' - mpiexec.hydra -n 4 printenv PMI_SIZE > out3 && - test_debug "cat out3" && - test $(count_uniq_lines out3) -eq 1 -' - test_expect_success 'Flux libpmi-client wire protocol works with Hydra' ' mpiexec.hydra -n 4 ${PMI_INFO} ' test_expect_success 'Hydra can launch Flux' ' - mpiexec.hydra -n 4 flux start \ - flux comms info >flux_out && - test_debug "cat flux_out" && - grep size=4 flux_out + mpiexec.hydra -n 4 flux start flux getattr size ' test_done