@@ -1113,7 +1113,7 @@ mod test {
1113
1113
let initial_updates = PendingMgsUpdates :: new ( ) ;
1114
1114
let nmax_updates = 1 ;
1115
1115
let impossible_update_policy = ImpossibleUpdatePolicy :: Reevaluate ;
1116
- let updates = plan_mgs_updates (
1116
+ let ( updates, _host_phase_2 ) = plan_mgs_updates (
1117
1117
log,
1118
1118
& collection,
1119
1119
current_boards,
@@ -1127,7 +1127,7 @@ mod test {
1127
1127
// Test that when a TUF repo is specified and one RoT is outdated, then
1128
1128
// it's configured with an update (and the update looks correct).
1129
1129
let repo = test_boards. tuf_repo ( ) ;
1130
- let updates = plan_mgs_updates (
1130
+ let ( updates, _host_phase_2 ) = plan_mgs_updates (
1131
1131
log,
1132
1132
& collection,
1133
1133
current_boards,
@@ -1150,7 +1150,7 @@ mod test {
1150
1150
// Test that when an update is already pending, and nothing changes
1151
1151
// about the state of the world (i.e., the inventory), then the planner
1152
1152
// makes no changes.
1153
- let later_updates = plan_mgs_updates (
1153
+ let ( later_updates, _host_phase_2 ) = plan_mgs_updates (
1154
1154
log,
1155
1155
& collection,
1156
1156
current_boards,
@@ -1172,7 +1172,7 @@ mod test {
1172
1172
. stage0_version_exception ( SpType :: Sled , 0 , ARTIFACT_VERSION_1 )
1173
1173
. stage0_version_exception ( SpType :: Switch , 1 , ARTIFACT_VERSION_1 )
1174
1174
. build ( ) ;
1175
- let later_updates = plan_mgs_updates (
1175
+ let ( later_updates, _host_phase_2 ) = plan_mgs_updates (
1176
1176
log,
1177
1177
& later_collection,
1178
1178
current_boards,
@@ -1198,7 +1198,7 @@ mod test {
1198
1198
. rot_active_version_exception ( SpType :: Switch , 1 , ARTIFACT_VERSION_1 )
1199
1199
. stage0_version_exception ( SpType :: Switch , 1 , ARTIFACT_VERSION_1 )
1200
1200
. build ( ) ;
1201
- let later_updates = plan_mgs_updates (
1201
+ let ( later_updates, _host_phase_2 ) = plan_mgs_updates (
1202
1202
log,
1203
1203
& later_collection,
1204
1204
current_boards,
@@ -1228,7 +1228,7 @@ mod test {
1228
1228
ExpectedVersion :: NoValidVersion ,
1229
1229
)
1230
1230
. build ( ) ;
1231
- let later_updates = plan_mgs_updates (
1231
+ let ( later_updates, _host_phase_2 ) = plan_mgs_updates (
1232
1232
log,
1233
1233
& updated_collection,
1234
1234
current_boards,
@@ -1248,7 +1248,7 @@ mod test {
1248
1248
)
1249
1249
. stage0_version_exception ( SpType :: Sled , 0 , ARTIFACT_VERSION_1 )
1250
1250
. build ( ) ;
1251
- let updates = plan_mgs_updates (
1251
+ let ( updates, _host_phase_2 ) = plan_mgs_updates (
1252
1252
log,
1253
1253
& collection,
1254
1254
& BTreeSet :: new ( ) ,
@@ -1258,7 +1258,7 @@ mod test {
1258
1258
impossible_update_policy,
1259
1259
) ;
1260
1260
assert ! ( updates. is_empty( ) ) ;
1261
- let updates = plan_mgs_updates (
1261
+ let ( updates, _host_phase_2 ) = plan_mgs_updates (
1262
1262
log,
1263
1263
& collection,
1264
1264
& collection. baseboards ,
@@ -1301,7 +1301,7 @@ mod test {
1301
1301
)
1302
1302
. stage0_version_exception ( SpType :: Sled , 0 , ARTIFACT_VERSION_1 )
1303
1303
. build ( ) ;
1304
- let new_updates = plan_mgs_updates (
1304
+ let ( new_updates, _host_phase_2 ) = plan_mgs_updates (
1305
1305
log,
1306
1306
& collection,
1307
1307
& collection. baseboards ,
@@ -1342,7 +1342,7 @@ mod test {
1342
1342
)
1343
1343
. stage0_version_exception ( SpType :: Sled , 0 , ARTIFACT_VERSION_1_5 )
1344
1344
. build ( ) ;
1345
- let new_updates = plan_mgs_updates (
1345
+ let ( new_updates, _host_phase_2 ) = plan_mgs_updates (
1346
1346
log,
1347
1347
& collection,
1348
1348
& collection. baseboards ,
@@ -1678,7 +1678,7 @@ mod test {
1678
1678
ExpectedVersion :: NoValidVersion ,
1679
1679
)
1680
1680
. build ( ) ;
1681
- let all_updates = plan_mgs_updates (
1681
+ let ( all_updates, _host_phase_2 ) = plan_mgs_updates (
1682
1682
log,
1683
1683
& collection,
1684
1684
& collection. baseboards ,
@@ -1714,7 +1714,7 @@ mod test {
1714
1714
ExpectedVersion :: NoValidVersion ,
1715
1715
)
1716
1716
. build ( ) ;
1717
- let all_updates = plan_mgs_updates (
1717
+ let ( all_updates, _host_phase_2 ) = plan_mgs_updates (
1718
1718
log,
1719
1719
& collection,
1720
1720
& collection. baseboards ,
0 commit comments