Merge ~raharper/curtin:bug/fix-curtin-exit-code into curtin:master
Proposed by
Ryan Harper
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Scott Moser | ||||
Approved revision: | a6145f924398b06a2d5d5d18d4642505ecdc780d | ||||
Merged at revision: | a6145f924398b06a2d5d5d18d4642505ecdc780d | ||||
Proposed branch: | ~raharper/curtin:bug/fix-curtin-exit-code | ||||
Merge into: | curtin:master | ||||
Diff against target: |
68 lines (+5/-13) 2 files modified
curtin/commands/collect_logs.py (+1/-1) tests/unittests/test_commands_collect_logs.py (+4/-12) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser (community) | Approve | ||
Review via email: mp+339411@code.launchpad.net |
Description of the change
fix /usr/bin/curtin exit code in install failure
When curtin encounters an error during the 'install' stage, the default
configuration enables collecting of system logs. The collect_logs
function 'create_
part of the 'collect_logs_main' method; this resulted in failed installs
exiting with a return code of 0. The fix is to move the sys.exit(0) up to
the main method.
LP: #1751176
To post a comment you must log in.