diff options
| author | Zhaoqi Xu <lzy00419@outlook.com> | 2026-08-31 11:33:43 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-29 20:12:07 +0300 |
| commit | 53d441a7402aab3ecd02909ae1a0ae6a2e135332 (patch) | |
| tree | c2494558cf73de60ddfb515c8fefb7c07a417ed4 /BaseTools/Source/Python | |
| parent | f21a6e6fb6cd915584fbccfd421c2088d22ca5ba (diff) | |
| download | edk2-53d441a7402aab3ecd02909ae1a0ae6a2e135332.tar.xz | |
BaseTools/FMMT: Return non-zero exit status on failure
FMMT catches exceptions from operations such as viewing a missing
input file, prints the error, and then returns status 0. Callers
and scripts treat that as success.
Set status to 1 in the exception handler so the process exit code
matches the failure.
A regression test covers FMMT -v not-a-file.
Signed-off-by: Zhaoqi Xu <lzy00419@outlook.com>
Diffstat (limited to 'BaseTools/Source/Python')
| -rw-r--r-- | BaseTools/Source/Python/FMMT/FMMT.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/FMMT/FMMT.py b/BaseTools/Source/Python/FMMT/FMMT.py index d4fa07a984..e8bc9ea09a 100644 --- a/BaseTools/Source/Python/FMMT/FMMT.py +++ b/BaseTools/Source/Python/FMMT/FMMT.py @@ -155,6 +155,7 @@ def main(): parser.print_help()
except Exception as e:
print(e)
+ status = 1
return status
|
