Skip to content

Commit 3bdf418

Browse files
committed
fixup! testsuite: cover flub bootstrap
1 parent 2f2ab18 commit 3bdf418

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

t/t0034-flub.t

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_expect_success 'job has size 1' '
2828
'
2929
test_expect_success 'flub bootstrap fails with no available ranks' '
3030
test_must_fail flux broker \
31-
-Sbroker.boot-server=$(cat test1.uri) 2>noranks.err
31+
-Sbroker.boot-server=$(cat test1.uri) 2>noranks.err &&
3232
grep "no available ranks" noranks.err
3333
'
3434
test_expect_success 'clean up' '
@@ -70,10 +70,15 @@ test_expect_success 'overlay status shows extra node offline' '
7070
grep "2 extra0: offline" ov2.out
7171
'
7272
test_expect_success 'submit a job that starts the extra broker' '
73-
flux submit -N1 flux broker \
73+
id=$(flux submit -N1 flux broker \
7474
--config-path=fake2.toml \
7575
-Stbon.topo=kary:0 \
76-
-Sbroker.boot-server=$(cat test2.uri)
76+
-Sbroker.boot-server=$(cat test2.uri)) &&
77+
flux job wait-event -p guest.exec.eventlog $id shell.start
78+
'
79+
test_expect_success 'wait for overlay status to be full' '
80+
flux proxy $(cat test2.uri) \
81+
flux overlay status --wait full --timeout 10s
7782
'
7883
test_expect_success 'run a 3 node job in the expanded instance' '
7984
run_timeout 30 flux proxy $(cat test2.uri) \
@@ -113,13 +118,18 @@ test_expect_success 'job has size 7' '
113118
test $size -eq 7
114119
'
115120
test_expect_success 'submit a job that starts extra brokers' '
116-
flux submit -N4 flux broker \
121+
id=$(flux submit -N4 flux broker \
117122
--config-path=fake3.toml \
118123
-Stbon.topo=kary:2 \
119-
-Sbroker.boot-server=$(cat test3.uri)
124+
-Sbroker.boot-server=$(cat test3.uri)) &&
125+
flux job wait-event -p guest.exec.eventlog $id shell.start
126+
'
127+
test_expect_success 'wait for overlay status to be full' '
128+
flux proxy $(cat test3.uri) \
129+
flux overlay status --wait full --timeout 10s
120130
'
121131
test_expect_success 'run a 7 node job in the expanded instance' '
122-
run_timeout 60 flux proxy $(cat test3.uri) \
132+
run_timeout 30 flux proxy $(cat test3.uri) \
123133
flux run --label-io -N7 flux pmi barrier
124134
'
125135
test_expect_success 'clean up' '

0 commit comments

Comments
 (0)