@@ -268,6 +268,7 @@ impl TestRunner {
268
268
269
269
// If still running, kill it
270
270
if !terminated_naturally {
271
+ log:: warn!( "{test_name} test timed out after {timeout:?}, terminating process" ) ;
271
272
let _ = child. kill ( ) ;
272
273
let _ = child. wait ( ) ;
273
274
}
@@ -408,7 +409,7 @@ impl TestRunner {
408
409
self . run_simple_command_test (
409
410
& [ "board-info" ] ,
410
411
Some ( & [ "Chip type:" ] ) ,
411
- Duration :: from_secs ( 5 ) ,
412
+ Duration :: from_secs ( 10 ) ,
412
413
"board-info" ,
413
414
)
414
415
}
@@ -436,7 +437,7 @@ impl TestRunner {
436
437
part_table,
437
438
] ,
438
439
Some ( & [ "espflash::partition_table::does_not_fit" ] ) ,
439
- Duration :: from_secs ( 5 ) ,
440
+ Duration :: from_secs ( 10 ) ,
440
441
"partition too big" ,
441
442
) ?;
442
443
@@ -540,7 +541,7 @@ impl TestRunner {
540
541
self . run_simple_command_test (
541
542
& [ "list-ports" ] ,
542
543
Some ( & [ "Silicon Labs" ] ) ,
543
- Duration :: from_secs ( 5 ) ,
544
+ Duration :: from_secs ( 10 ) ,
544
545
"list-ports" ,
545
546
) ?;
546
547
Ok ( ( ) )
@@ -562,7 +563,7 @@ impl TestRunner {
562
563
self . run_simple_command_test (
563
564
& [ "read-flash" , "0" , "0x4000" , flash_output. to_str ( ) . unwrap ( ) ] ,
564
565
Some ( & [ "Flash content successfully read" ] ) ,
565
- Duration :: from_secs ( 5 ) ,
566
+ Duration :: from_secs ( 10 ) ,
566
567
"read after erase" ,
567
568
) ?;
568
569
@@ -586,14 +587,14 @@ impl TestRunner {
586
587
587
588
// Test unaligned address (not multiple of 4096)
588
589
let mut cmd = self . create_espflash_command ( & [ "erase-region" , "0x1001" , "0x1000" ] ) ;
589
- let exit_code = self . run_command_with_timeout ( & mut cmd, Duration :: from_secs ( 5 ) ) ?;
590
+ let exit_code = self . run_command_with_timeout ( & mut cmd, Duration :: from_secs ( 10 ) ) ?;
590
591
if exit_code == 0 {
591
592
return Err ( "Unaligned address erase should have failed but succeeded" . into ( ) ) ;
592
593
}
593
594
594
595
// Test unaligned size (not multiple of 4096)
595
596
let mut cmd = self . create_espflash_command ( & [ "erase-region" , "0x1000" , "0x1001" ] ) ;
596
- let exit_code = self . run_command_with_timeout ( & mut cmd, Duration :: from_secs ( 5 ) ) ?;
597
+ let exit_code = self . run_command_with_timeout ( & mut cmd, Duration :: from_secs ( 10 ) ) ?;
597
598
if exit_code == 0 {
598
599
return Err ( "Unaligned size erase should have failed but succeeded" . into ( ) ) ;
599
600
}
@@ -602,7 +603,7 @@ impl TestRunner {
602
603
self . run_simple_command_test (
603
604
& [ "erase-region" , "0x1000" , "0x1000" ] ,
604
605
Some ( & [ "Erasing region at" ] ) ,
605
- Duration :: from_secs ( 5 ) ,
606
+ Duration :: from_secs ( 10 ) ,
606
607
"erase-region valid" ,
607
608
) ?;
608
609
@@ -615,7 +616,7 @@ impl TestRunner {
615
616
flash_output. to_str ( ) . unwrap ( ) ,
616
617
] ,
617
618
Some ( & [ "Flash content successfully read" ] ) ,
618
- Duration :: from_secs ( 5 ) ,
619
+ Duration :: from_secs ( 10 ) ,
619
620
"read after erase-region" ,
620
621
) ?;
621
622
@@ -660,7 +661,7 @@ impl TestRunner {
660
661
self . run_simple_command_test (
661
662
& [ "write-bin" , "0x0" , pattern_file. to_str ( ) . unwrap ( ) ] ,
662
663
Some ( & [ "Binary successfully written to flash!" ] ) ,
663
- Duration :: from_secs ( 5 ) ,
664
+ Duration :: from_secs ( 10 ) ,
664
665
"write pattern" ,
665
666
) ?;
666
667
@@ -677,7 +678,7 @@ impl TestRunner {
677
678
flash_output. to_str ( ) . unwrap ( ) ,
678
679
] ,
679
680
Some ( & [ "Flash content successfully read and written to" ] ) ,
680
- Duration :: from_secs ( 5 ) ,
681
+ Duration :: from_secs ( 10 ) ,
681
682
& format ! ( "read {len} bytes" ) ,
682
683
) ?;
683
684
@@ -704,7 +705,7 @@ impl TestRunner {
704
705
flash_output. to_str ( ) . unwrap ( ) ,
705
706
] ,
706
707
Some ( & [ "Flash content successfully read and written to" ] ) ,
707
- Duration :: from_secs ( 5 ) ,
708
+ Duration :: from_secs ( 10 ) ,
708
709
& format ! ( "read {len} bytes with ROM bootloader" ) ,
709
710
) ?;
710
711
@@ -838,7 +839,7 @@ impl TestRunner {
838
839
app_bin. to_str ( ) . unwrap ( ) ,
839
840
] ,
840
841
Some ( & [ "Image successfully saved!" ] ) ,
841
- Duration :: from_secs ( 5 ) ,
842
+ Duration :: from_secs ( 10 ) ,
842
843
"save-image C6 regression" ,
843
844
) ?;
844
845
@@ -879,7 +880,7 @@ impl TestRunner {
879
880
self . run_simple_command_test (
880
881
& [ "checksum-md5" , "0x1000" , "0x100" ] ,
881
882
Some ( & [ "0x827f263ef9fb63d05499d14fcef32f60" ] ) ,
882
- Duration :: from_secs ( 5 ) ,
883
+ Duration :: from_secs ( 10 ) ,
883
884
"checksum-md5" ,
884
885
) ?;
885
886
@@ -892,7 +893,7 @@ impl TestRunner {
892
893
self . run_timed_command_test (
893
894
& [ "monitor" , "--non-interactive" ] ,
894
895
Some ( & [ "Hello world!" ] ) ,
895
- Duration :: from_secs ( 5 ) ,
896
+ Duration :: from_secs ( 10 ) ,
896
897
"monitor" ,
897
898
) ?;
898
899
Ok ( ( ) )
@@ -903,7 +904,7 @@ impl TestRunner {
903
904
self . run_simple_command_test (
904
905
& [ "reset" ] ,
905
906
Some ( & [ "Resetting target device" ] ) ,
906
- Duration :: from_secs ( 5 ) ,
907
+ Duration :: from_secs ( 10 ) ,
907
908
"reset" ,
908
909
) ?;
909
910
Ok ( ( ) )
@@ -914,7 +915,7 @@ impl TestRunner {
914
915
self . run_simple_command_test (
915
916
& [ "hold-in-reset" ] ,
916
917
Some ( & [ "Holding target device in reset" ] ) ,
917
- Duration :: from_secs ( 5 ) ,
918
+ Duration :: from_secs ( 10 ) ,
918
919
"hold-in-reset" ,
919
920
) ?;
920
921
Ok ( ( ) )
0 commit comments