Page MenuHomeFreeBSD

Add set pipefail in most framework scripts.
ClosedPublic

Authored by mat on Oct 29 2020, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 18, 4:21 AM
Unknown Object (File)
Dec 27 2023, 5:12 PM
Unknown Object (File)
Dec 27 2023, 5:12 PM
Unknown Object (File)
Dec 21 2023, 8:29 PM
Unknown Object (File)
Dec 18 2023, 6:10 PM
Unknown Object (File)
Nov 25 2023, 9:05 PM
Unknown Object (File)
Nov 16 2023, 10:12 PM
Unknown Object (File)
Nov 9 2023, 6:10 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 34563
Build 31657: 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.