dev-embedded/fwup: fix tests

Bug: https://bugs.gentoo.org/952828
Closes: https://bugs.gentoo.org/952828
Signed-off-by: Mathijs Saey <mathijs@mathsaey.be>
This commit is contained in:
Mathijs Saey
2025-06-15 01:31:47 +02:00
parent 428df7d122
commit bee0a6b2f2

View File

@@ -25,3 +25,16 @@ src_prepare() {
default
./autogen.sh
}
src_test() {
# The fwup tests do not like the portage sandbox. Make them play nice.
# Modify tests/common.sh to ensure $WRITE_SHIM and $MOUNT_SHIM point to
# files that don't exist. This is needed to ensure tests don't try to use
# LD_PRELOAD.
sed -i 's/^\(WRITE\|MOUNT\)_SHIM=".*"/\1_SHIM=""/' 'tests/common.sh' \
|| die 'Could not sed tests/common.sh'
# set VERIFY_SYSCALLS_DISABLE, to disable tracing
VERIFY_SYSCALLS_DISABLE="" emake check
}