Summary: | [TRACKER] Incorrect uses of nonfatal | ||
---|---|---|---|
Product: | Quality Assurance | Reporter: | Michał Górny <mgorny> |
Component: | Trackers | Assignee: | Gentoo Quality Assurance Team <qa> |
Status: | CONFIRMED --- | ||
Severity: | normal | Keywords: | Tracker |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=451938 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 517976, 551154, 551156, 551158, 551160, 551162, 551164, 551166, 551168, 551170, 551172, 551174, 551178, 551180, 551182, 551184, 551186, 551188, 551190, 551196, 551198, 551200 | ||
Bug Blocks: |
Description
Michał Górny
2015-06-04 08:52:37 UTC
Just to be clear, the correct way of using nonfatal is to disable implicit 'die' call in built-in helpers (like emake), in order to handle the error manually. For example, to perform some additional cleanup before dying or provide custom error message. Example: src_test() { food --pidfile "${T}/food.pid" nonfatal emake check local ret=${?} kill "$(<"${T}"/food.pid)" [[ ${ret} == 0 ]] || die "Tests fail, oh my" } |