summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-12-13 09:14:38 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-13 11:36:57 +0000
commit21ee3794074653f8dca68204dd28824d583bbad4 (patch)
treee87e334ffe29219ac79cbd1650c4d468998dd747
parent61be49e0f745dc1ea3e4b912ec1e5f50cfc17bb7 (diff)
downloadedk2-21ee3794074653f8dca68204dd28824d583bbad4.tar.gz
edk2-21ee3794074653f8dca68204dd28824d583bbad4.tar.bz2
edk2-21ee3794074653f8dca68204dd28824d583bbad4.zip
OvmfPkg/PlatformCI: add QEMU_SKIP
Skip the qemu boot test in case QEMU_SKIP is set to true. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
-rw-r--r--OvmfPkg/PlatformCI/PlatformBuildLib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py b/OvmfPkg/PlatformCI/PlatformBuildLib.py
index 90ac0b29a8..bfef9849c7 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
#