On Sun Sep 1 18:35:15 2024 +0000, Aida Jonikienė wrote:
Also there are no tests for any of these functions (but I'm not sure how well they would work in the TestBot VMs)
Tests are not possible for UEFI, the container will most likely not have access to UEFI due to security reasons. The code is too simple to cover it with tests, and we can only test SecureBoot status. I added the code above for the test, the SecureBoot check code I found in an existing project, and I additionally checked the functionality of the code for getting text fields and uefi attributes on my computer, on another computer these names and guid may not be present. get_firmware_type checks only for the presence of the efi directory, and in case of an error always returns FirmwareTypeBios. So I doubt that it is possible to do real tests that could check anything correctly.