Commit e26b49d
committed
Add unit tests for USB SD card reader detection
Add comprehensive unit tests for the new USB SD card reader detection
functionality in MediacardComboStorage:
- test_mediacard_combo_storage_usb_sd_card_reader_insertion: Tests
detection of insertion via capacity change messages
- test_mediacard_combo_storage_usb_sd_card_reader_removal: Tests
detection of removal via capacity change to 0
- test_mediacard_combo_storage_usb_sd_card_reader_partition: Tests
extraction of partition names from sda: sda1 patterns
- test_mediacard_combo_storage_usb_sd_card_reader_action_update: Tests
that action state can be updated from removal to insertion
These tests cover the new code paths added to support USB SD card
readers that appear as SCSI/USB mass storage devices.1 parent e840c16 commit e26b49d
File tree
2 files changed
+48
-7
lines changed- checkbox-support/checkbox_support
- scripts
- tests
2 files changed
+48
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | 387 | | |
395 | 388 | | |
396 | 389 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
423 | 471 | | |
424 | 472 | | |
425 | 473 | | |
| |||
0 commit comments