Commit d58aeea
committed
fix(test): Improve UDP tests, super flash and sparse handling
Refactor tests and driver behavior:
- FastbootCLI: remove the unused --force flag and related variable/help text.
- Tests (UdpTransportTests): make UDP timeouts/attempts configurable via env vars, enable SO_REUSEADDR when binding test sockets, harden CompleteHandshake with proper packet handling and timeout handling, wrap flaky tests with a RunWithRetries helper, and restructure server/transport lifecycles to avoid port conflicts and race conditions.
- InternalFlashSparseFile: materialize Resparse() results with ToList() to avoid deferred enumeration issues.
- FastbootDriver: add using for sparse core, suppress verbose step notifications for sparse/flashing steps, add an overloaded FlashImage supporting super-partition optimization and a progress callback; implement AOSP-style super optimization path (uses SuperFlashHelper) while allowing disabling of the optimization.
- Project: bump FirmwareKit.Sparse package from 1.0.1 to 1.0.2.
These changes improve test stability, add a super-partition optimization pathway, and fix potential runtime enumeration and race issues.1 parent c3120ac commit d58aeea
File tree
5 files changed
+243
-179
lines changed- FastbootCLI
- FirmwareKit.Comm.Fastboot.Tests
- FirmwareKit.Comm.Fastboot
- Command
5 files changed
+243
-179
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
441 | 439 | | |
442 | 440 | | |
443 | 441 | | |
444 | | - | |
445 | 442 | | |
446 | 443 | | |
447 | 444 | | |
| |||
0 commit comments