From 04ae17218deec25c6f488609c5e2ca9c419d2c4b Mon Sep 17 00:00:00 2001 From: Garrett Kirkendall Date: Fri, 14 May 2021 23:01:43 +0800 Subject: BaseTools: build: Set ReturnCode on POSTBUILD fail 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 Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Garrett Kirkendall Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'BaseTools/Source/Python/build/build.py') diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 037493f0b0..3e4d83409f 100755 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -2757,6 +2757,7 @@ def Main(): Conclusion = "Done" except: Conclusion = "Failed" + ReturnCode = POSTBUILD_ERROR elif ReturnCode == ABORT_ERROR: Conclusion = "Aborted" else: -- cgit v1.2.3