support/testing: disable tests using edk2 on aarch64 architecture

EDK2 version edk2-stable202405 (not yet in Buildroot) has dependencies
on specific Qemu version.

Buildroot guidelines also recommend that "each patch must be complete".
See: [1]. This means, a patch in a series is not allowed to break
something knowingly, even in the same patch series. This rule is
mainly for using git bisect.

We also want to avoid bumping EDK2, update the runtime test infra,
and few tests in a big single commit, for readability. This would mix
too many changes in the same commit.

As a trade off, this commit disables the runtime tests which are known
to be broken by the upcoming edk2 update. Then, those tests will be
individually fixed and re-enabled in followup commits.

This EDK2/Qemu incompatibility only affects runtime tests using EDK2
on the Arm Aarch64 architecture. This commit disable the runtime
tests by adding a "skipTest()" call in:
- tests.boot.test_edk2
- tests.boot.test_grub.TestGrubAArch64EFI
- tests.package.test_fwts

[1] https://buildroot.org/downloads/manual/manual.html#submitting-patches

Signed-off-by: Julien Olivain <ju.o@free.fr>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Julien Olivain 2024-10-31 20:20:01 +01:00 committed by Romain Naour
parent 8fcf3a1bbe
commit 6ced53de5f
3 changed files with 12 additions and 0 deletions

View File

@ -33,6 +33,10 @@ class TestEdk2(infra.basetest.BRTest):
BR2_PACKAGE_HOST_MTOOLS=y
"""
def setUp(self):
self.skipTest("Incompatible QEmu 5.2.0 (Docker image) / "
"EDK2 (stable202405) versions.")
def test_run(self):
hda = os.path.join(self.builddir, "images", "disk.img")
flash0 = os.path.join(self.builddir, "images", "SBSA_FLASH0.fd")

View File

@ -156,6 +156,10 @@ class TestGrubAArch64EFI(infra.basetest.BRTest):
""".format(post_image=infra.filepath("tests/boot/test_grub/post-image-aarch64-efi.sh"),
linux_fragment=infra.filepath("tests/boot/test_grub/linux-aarch64-efi.config"))
def setUp(self):
self.skipTest("Incompatible QEmu 5.2.0 (Docker image) / "
"EDK2 (stable202405) versions.")
def test_run(self):
hda = os.path.join(self.builddir, "images", "disk.img")
bios = os.path.join(self.builddir, "images", "QEMU_EFI.fd")

View File

@ -36,6 +36,10 @@ class TestFwts(infra.basetest.BRTest):
BR2_PACKAGE_HOST_MTOOLS=y
"""
def setUp(self):
self.skipTest("Incompatible QEmu 5.2.0 (Docker image) / "
"EDK2 (stable202405) versions.")
def test_run(self):
hda = os.path.join(self.builddir, "images", "disk.img")
flash0 = os.path.join(self.builddir, "images", "SBSA_FLASH0.fd")