File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
ch_integration_tests/tests Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -248,11 +248,22 @@ mod tests {
248248 guest. wait_vm_boot ( None ) . unwrap ( ) ;
249249 } ) ;
250250
251- spawn_virsh ( & [ "destroy" , & guest. vm_name ] )
251+ let destroy_output = spawn_virsh ( & [ "destroy" , & guest. vm_name ] )
252252 . unwrap ( )
253- . wait ( )
253+ . wait_with_output ( )
254254 . unwrap ( ) ;
255255
256+ eprintln ! (
257+ "destroy stdout\n \n {}\n \n destroy stderr\n \n {}" ,
258+ std:: str :: from_utf8( & destroy_output. stdout) . unwrap( ) ,
259+ std:: str :: from_utf8( & destroy_output. stderr) . unwrap( )
260+ ) ;
261+
262+ assert ! ( std:: str :: from_utf8( & destroy_output. stdout)
263+ . unwrap( )
264+ . trim( )
265+ . starts_with( & format!( "Domain {} destroyed" , guest. vm_name) ) ) ;
266+
256267 libvirtd. kill ( ) . unwrap ( ) ;
257268 let libvirtd_output = libvirtd. wait_with_output ( ) . unwrap ( ) ;
258269
You can’t perform that action at this time.
0 commit comments