Please change ${ED} to ${ED?} so it dies instead of removing system root. Steps to Reproduce: 1. Don't read savedconfig.sh (who reads scripts before trying to execute them, what can go wrong?) 2. Know nothing about eclass tests 3. Run "bash test/savedconfig.sh" Actual Result: Tries to remove system root. Expected Result: Dies.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=318f4a2e9b59083194ac34389a1ca29fce3c969b commit 318f4a2e9b59083194ac34389a1ca29fce3c969b Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-02-14 17:20:39 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-02-14 17:24:57 +0000 eclass/tests/savedconfig.sh: abort when source tests-common.sh fails Closes: https://bugs.gentoo.org/833342 Signed-off-by: Mike Gilbert <floppym@gentoo.org> eclass/tests/savedconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
See also: https://github.com/gentoo/gentoo/commit/c1f9ddbdceb036b79881625403917aaeeb608190.