mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
3a8d66d43be8dbd63b86c089fc5208f9bb62b27a
die -n will make die become non-fatal if run under 'nonfatal',
this is useful if e.g. need to do cleanup.
For example, in an ebuild, I need to setup a database, run tests,
then always cleanup, which looks like:
```
db_setup
nonfatal each_fakegem_test || tests_failed=1
db_cleanup
if [[ ${tests_failed} == 1 ]] ; then
die "Tests failed! Please see ..."
fi
```
Just like we do with e.g. virtualx. This also brings us into line
with the Python eclasses.
Signed-off-by: Sam James <sam@gentoo.org>
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
98%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%