[PATCH v2 2/7] OvmfPkg/PlatformCI: add QEMU_SKIP


Gerd Hoffmann
 

Skip the qemu boot test in case QEMU_SKIP is set to true.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
OvmfPkg/PlatformCI/PlatformBuildLib.py | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py b/OvmfPkg/PlatformCI/PlatformBuildLib.py
index 90ac0b29a892..bfef9849c749 100644
--- a/OvmfPkg/PlatformCI/PlatformBuildLib.py
+++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py
@@ -183,6 +183,11 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager):
os.makedirs(VirtualDrive, exist_ok=True)
OutputPath_FV = os.path.join(self.env.GetValue("BUILD_OUTPUT_BASE"), "FV")

+ if (self.env.GetValue("QEMU_SKIP") and
+ self.env.GetValue("QEMU_SKIP").upper() == "TRUE"):
+ logging.info("skipping qemu boot test")
+ return 0
+
#
# QEMU must be on the path
#
--
2.31.1