Sam James 3a8d66d43b ruby-ng.eclass: allow non-fatal use of test functions
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>
2023-03-22 03:25:05 +00:00
2023-03-22 01:18:34 +00:00
2023-03-04 09:39:35 -05:00
2023-03-17 21:17:56 +08:00
2023-03-15 10:58:52 +01:00
2023-03-19 03:15:34 +00:00
2023-03-22 01:17:37 +00:00
2023-03-18 17:42:37 +01:00
2023-03-20 16:58:31 -04:00
2023-03-21 23:25:46 +01:00
2023-03-20 14:10:52 +01:00
2023-03-20 08:40:18 +00:00
2023-03-08 13:08:12 -05:00
2023-03-18 18:06:29 +01:00
2023-03-20 02:21:40 +00:00
2023-02-26 23:29:19 -05:00
2023-03-20 22:03:20 +08:00
2023-03-19 03:19:44 +00:00
2023-03-21 12:42:54 -04:00
2023-03-22 01:19:09 +00:00
2023-02-24 08:29:55 +01:00
2023-03-22 01:16:46 +00:00
2023-03-22 02:52:30 +00:00
2023-03-20 15:40:37 -07:00
2023-03-21 20:28:31 +02:00
2023-03-18 17:42:59 +01:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%