copy_minios¶
Source code: copy_minios.py
Selectively copies the miniOS part that has the same recovery key ver as FW.
Description¶
miniOS A/B are signed with different recovery key, with A signed with the old one and B signed with the new one. This test copies the miniOS partition with the same recovery key version as firmware and overrides the other miniOS partition.
Test Procedure¶
- Checks if DUT is using disk_layout_v3. If not, ends the test. 
- Gets the recovery key version from the firmware. 
- If the recovery key version is 1, uses miniOS A as source part. Else uses miniOS B. 
- Copies the source partition to the destination partition. 
- Now the miniOS A and minios B are the same. 
Dependency¶
gbb_utility, futility
Examples¶
To run the test, do:
{
  "pytest_name": "copy_minios"
}
Test Arguments¶
This test does not have any arguments.