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 78
78
run : rustup update
79
79
- name : Download and Install HWI
80
80
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
83
88
- name : Wipe python
84
89
run : cargo test test_wipe_device_pyhton -- --ignored --test-threads=1
85
90
- name : Restart simulator
Original file line number Diff line number Diff line change @@ -450,19 +450,19 @@ mod tests {
450
450
} ;
451
451
}
452
452
453
- mod python_tests {
453
+ mod test_python_tests {
454
454
use super :: * ;
455
455
generate_enumerate_test ! ( PythonHWIImplementation ) ;
456
456
}
457
457
458
- mod binary_tests {
458
+ mod test_binary_tests {
459
459
use super :: * ;
460
460
generate_enumerate_test ! ( BinaryHWIImplementation <HWIBinaryExecutorImpl >) ;
461
461
}
462
462
463
463
#[ test]
464
464
#[ serial]
465
- fn test_set_log_level ( ) {
465
+ fn test_python_set_log_level ( ) {
466
466
HWIClient :: < PythonHWIImplementation > :: set_log_level ( types:: LogLevel :: DEBUG ) . unwrap ( ) ;
467
467
let devices = HWIClient :: < PythonHWIImplementation > :: enumerate ( ) . unwrap ( ) ;
468
468
assert ! ( !devices. is_empty( ) ) ;
@@ -471,21 +471,21 @@ mod tests {
471
471
#[ test]
472
472
#[ serial]
473
473
#[ ignore]
474
- fn test_install_hwi ( ) {
474
+ fn test_python_install_hwi ( ) {
475
475
HWIClient :: < PythonHWIImplementation > :: install_hwilib ( Some ( "2.1.1" ) ) . unwrap ( ) ;
476
476
}
477
477
478
478
#[ test]
479
479
#[ serial]
480
480
#[ ignore]
481
- fn test_wipe_device_pyhton ( ) {
481
+ fn test_python_wipe_device ( ) {
482
482
wipe_device :: < PythonHWIImplementation > ( ) ;
483
483
}
484
484
485
485
#[ test]
486
486
#[ serial]
487
487
#[ ignore]
488
- fn test_wipe_device_binary ( ) {
488
+ fn test_binary_wipe_device ( ) {
489
489
wipe_device :: < BinaryHWIImplementation < HWIBinaryExecutorImpl > > ( ) ;
490
490
}
491
491
You can’t perform that action at this time.
0 commit comments