File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 7878 run : rustup update
7979 - name : Download and Install HWI
8080 run : ./get_hwi.sh
81- - name : Test
82- run : cargo test --features ${{ matrix.rust.features }} -- --test-threads=1
81+ - name : Test python
82+ run : cargo test --features ${{ matrix.rust.features }} test_python -- --test-threads=1
83+ - name : Restart simulator
84+ if : matrix.emulator.name == 'ledger'
85+ run : docker restart simulator
86+ - name : Test binary
87+ run : cargo test --features ${{ matrix.rust.features }} test_binary -- --test-threads=1
8388 - name : Wipe python
8489 run : cargo test test_wipe_device_pyhton -- --ignored --test-threads=1
8590 - name : Restart simulator
Original file line number Diff line number Diff line change @@ -450,19 +450,19 @@ mod tests {
450450 } ;
451451 }
452452
453- mod python_tests {
453+ mod test_python_tests {
454454 use super :: * ;
455455 generate_enumerate_test ! ( PythonHWIImplementation ) ;
456456 }
457457
458- mod binary_tests {
458+ mod test_binary_tests {
459459 use super :: * ;
460460 generate_enumerate_test ! ( BinaryHWIImplementation <HWIBinaryExecutorImpl >) ;
461461 }
462462
463463 #[ test]
464464 #[ serial]
465- fn test_set_log_level ( ) {
465+ fn test_python_set_log_level ( ) {
466466 HWIClient :: < PythonHWIImplementation > :: set_log_level ( types:: LogLevel :: DEBUG ) . unwrap ( ) ;
467467 let devices = HWIClient :: < PythonHWIImplementation > :: enumerate ( ) . unwrap ( ) ;
468468 assert ! ( !devices. is_empty( ) ) ;
@@ -471,21 +471,21 @@ mod tests {
471471 #[ test]
472472 #[ serial]
473473 #[ ignore]
474- fn test_install_hwi ( ) {
474+ fn test_python_install_hwi ( ) {
475475 HWIClient :: < PythonHWIImplementation > :: install_hwilib ( Some ( "2.1.1" ) ) . unwrap ( ) ;
476476 }
477477
478478 #[ test]
479479 #[ serial]
480480 #[ ignore]
481- fn test_wipe_device_pyhton ( ) {
481+ fn test_python_wipe_device ( ) {
482482 wipe_device :: < PythonHWIImplementation > ( ) ;
483483 }
484484
485485 #[ test]
486486 #[ serial]
487487 #[ ignore]
488- fn test_wipe_device_binary ( ) {
488+ fn test_binary_wipe_device ( ) {
489489 wipe_device :: < BinaryHWIImplementation < HWIBinaryExecutorImpl > > ( ) ;
490490 }
491491
You can’t perform that action at this time.
0 commit comments