diff options
author | Garrett Kirkendall <Garrett.Kirkendall@amd.com> | 2021-05-14 23:01:43 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-05-21 06:52:36 +0000 |
commit | 04ae17218deec25c6f488609c5e2ca9c419d2c4b (patch) | |
tree | 4877630bdaf85f4215eb2a6afc12f45300748d6f /BaseTools/Source/Python | |
parent | 15ee7b76891a78141e6e30ef3f8572e8d6b326d2 (diff) | |
download | edk2-04ae17218deec25c6f488609c5e2ca9c419d2c4b.tar.gz edk2-04ae17218deec25c6f488609c5e2ca9c419d2c4b.tar.bz2 edk2-04ae17218deec25c6f488609c5e2ca9c419d2c4b.zip |
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 <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>
Diffstat (limited to 'BaseTools/Source/Python')
-rwxr-xr-x | BaseTools/Source/Python/build/build.py | 1 |
1 files changed, 1 insertions, 0 deletions
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:
|