File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
mithril-test-lab/mithril-end-to-end Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " mithril-end-to-end"
3- version = " 0.4.54 "
3+ version = " 0.4.55 "
44authors = { workspace = true }
55edition = { workspace = true }
66documentation = { workspace = true }
Original file line number Diff line number Diff line change @@ -119,17 +119,22 @@ impl Devnet {
119119
120120 info ! ( "Bootstrapping the Devnet" ; "script" => & bootstrap_script_path. display( ) ) ;
121121
122- bootstrap_command
122+ let exit_status = bootstrap_command
123123 . spawn ( )
124124 . with_context ( || format ! ( "{bootstrap_script} failed to start" ) ) ?
125125 . wait ( )
126126 . await
127127 . with_context ( || format ! ( "{bootstrap_script} failed to run" ) ) ?;
128-
129- Ok ( Devnet {
130- artifacts_dir : bootstrap_args. artifacts_target_dir . to_owned ( ) ,
131- number_of_pool_nodes : bootstrap_args. number_of_pool_nodes ,
132- } )
128+ match exit_status. code ( ) {
129+ Some ( 0 ) => Ok ( Devnet {
130+ artifacts_dir : bootstrap_args. artifacts_target_dir . to_owned ( ) ,
131+ number_of_pool_nodes : bootstrap_args. number_of_pool_nodes ,
132+ } ) ,
133+ Some ( code) => Err ( anyhow ! ( RetryableDevnetError ( format!(
134+ "Bootstrap devnet exited with status code: {code}"
135+ ) ) ) ) ,
136+ None => Err ( anyhow ! ( "Bootstrap devnet terminated by signal" ) ) ,
137+ }
133138 }
134139
135140 /// Factory for test purposes
You can’t perform that action at this time.
0 commit comments