Page MenuHomeFreeBSD

Add set pipefail in most framework scripts.
ClosedPublic

Authored by mat on Oct 29 2020, 3:00 PM.
Tags
None
Referenced Files
F151332491: D27007.id79064.diff
Tue, Apr 7, 4:12 PM
F151331612: D27007.id79066.diff
Tue, Apr 7, 4:03 PM
F151273144: D27007.id79428.diff
Tue, Apr 7, 6:16 AM
F151226793: D27007.id79428.diff
Mon, Apr 6, 11:49 PM
Unknown Object (File)
Mon, Apr 6, 4:20 PM
Unknown Object (File)
Mon, Apr 6, 7:59 AM
Unknown Object (File)
Sun, Apr 5, 9:22 AM
Unknown Object (File)
Sat, Apr 4, 11:20 AM
Subscribers
None

Details

Summary

set pipefail changes the pipeline return status from being the return
status of the last command to the last non 0 exit status of any command
in the pipeline. This is needed to make sure all the commands in a
pipeline did actually return a non 0 status and not only the last one.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 34475
Build 31577: arc lint + arc unit

Event Timeline

mat requested review of this revision.Oct 29 2020, 3:00 PM
mat created this revision.
This revision is now accepted and ready to land.Oct 29 2020, 3:07 PM
  • fixup! Add set pipefail in most framework scripts.
This revision now requires review to proceed.Nov 2 2020, 8:31 AM
  • Ignore grep return value.
This revision was not accepted when it landed; it landed in state Needs Review.Nov 11 2020, 1:30 PM
This revision was automatically updated to reflect the committed changes.