Opened 15 years ago
Closed 15 years ago
#1035 closed defect (fixed)
Build_oem.sh and build_apt.sh are not returning correct error codes
Reported by: | tomfukushima | Owned by: | tomfukushima |
---|---|---|---|
Priority: | medium | Milestone: | 2.2 |
Component: | Build System | Version: | 2.1.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
The scripts have some check_xxx methods that look at the error code returned by the last operation and then return and exit on a failure. However, the exit code that is being returned is always 0 because of some flaw in the logic. That is, the error code needs to be stored in a variable, before it gets cleared by the execution of another statement (in this case, the "if" statement clears it).
Dan Seeman found this error and suggested a fix.
This fix is important for a continuous build system to work; it needs proper exit codes coming back.
Note:
See TracTickets
for help on using tickets.
r4055