ARM-software / bbr-acs

Arm SystemReady : BBR Compliance Suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: Cannot do the operations. Status - Out of Resources

samerhaj opened this issue · comments

On some virtual environments, the following error is observed:

ERROR: Cannot do the operations. Status - Out of Resources

The issue results from an empty \EFI\BOOT\bbr\SCT\Data\TestCase.ini file, which causes the SCT to display the Out of Resources error and immediately exit. TestCase.ini is normally populated with data about the test cases that are supposed to be run.

When the file is first zeroed out, SCT hangs with no error message.

The following triggers the issue::

  1. Run the SBBRRuntimeServicesBBTestFunction test (GUID E8C528DE-4B69-4C6B-AAEC-69645969266F) see code

  2. After completion, SCT calls SaveTestCases() (within ContinueExecuteStart() since the NVRAM test cold resets halfway through execution).

  3. Within SaveTestCases(), EfiIniFlush() is called. TestCase.ini appears to be zereod out inside this function, specifically line 1356. This line writes to the EFI_FILE_HANDLE provided as an argument to the function, which is presumably TestCase.ini.

The relation between the SBBRRuntimeServicesBBTestFunction test and TestCase.ini being zeroed out is unclear. ACS automatically runs to completion when the SBBRRuntimeServicesBBTestFunction test is excluded. When the SBBRRuntimeServicesBBTestFunction test is run on its own, it succeeds, then SCT hangs.

Also, the test SBBRRuntimeServicesBBTestFunction does not seem to be adding any value, and is redundant, as the UEFI variables rules (including NV variables) are already covered in the SCT tests upstream on TianoCore. Maybe this test should simply be removed?