]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: build: Set ReturnCode on POSTBUILD fail
authorGarrett Kirkendall <Garrett.Kirkendall@amd.com>
Fri, 14 May 2021 15:01:43 +0000 (23:01 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 May 2021 06:52:36 +0000 (06:52 +0000)
When build.by POSTBUILD handling section returns other than 0, set
ReturnCode to POSTBUILD_ERROR so build.py exits with return code other
than 0.

Fix for https://bugzilla.tianocore.org/show_bug.cgi?id=1977

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/Source/Python/build/build.py

index 037493f0b02a78da6f4b1303d866838db1e59988..3e4d83409f49e319ad41107685b23e9c8056196b 100755 (executable)
@@ -2757,6 +2757,7 @@ def Main():
             Conclusion = "Done"\r
         except:\r
             Conclusion = "Failed"\r
+            ReturnCode = POSTBUILD_ERROR\r
     elif ReturnCode == ABORT_ERROR:\r
         Conclusion = "Aborted"\r
     else:\r