@@ -110,7 +110,7 @@ pub fn wait_for_ssh_ready(
110110 container_name : & str ,
111111 timeout : Option < Duration > ,
112112 progress : ProgressBar ,
113- ) -> Result < ProgressBar > {
113+ ) -> Result < ( std :: time :: Duration , ProgressBar ) > {
114114 let timeout = timeout. unwrap_or ( SSH_TIMEOUT ) ;
115115 let ( _, progress) = wait_for_vm_ssh ( container_name, Some ( timeout) , progress) ?;
116116
@@ -135,7 +135,7 @@ pub fn wait_for_ssh_ready(
135135 if let Ok ( exit_status) = status {
136136 if exit_status. success ( ) {
137137 debug ! ( "SSH connection successful, VM is ready" ) ;
138- return Ok ( progress) ;
138+ return Ok ( ( start_time . elapsed ( ) , progress) ) ;
139139 }
140140 }
141141
@@ -165,7 +165,7 @@ pub fn run_ephemeral_ssh(opts: RunEphemeralSshOpts) -> Result<()> {
165165 debug ! ( "Using container ID: {}" , container_name) ;
166166
167167 let progress_bar = crate :: boot_progress:: create_boot_progress_bar ( ) ;
168- let progress_bar = wait_for_ssh_ready ( & container_name, None , progress_bar) ?;
168+ let ( _duration , progress_bar) = wait_for_ssh_ready ( & container_name, None , progress_bar) ?;
169169 progress_bar. finish_and_clear ( ) ;
170170
171171 // Execute SSH connection directly (no thread needed for this)
0 commit comments