mirror of
https://github.com/systemd/systemd.git
synced 2025-02-27 01:57:35 +03:00
test: set ACLs for the build dir when built with coverage
Otherwise unprivileged processes (like systemd-resolved) can't write coverage data.
This commit is contained in:
parent
74b781de25
commit
e4c822e9ac
@ -1070,6 +1070,9 @@ install_compiled_systemd() {
|
||||
if get_bool "$IS_BUILT_WITH_COVERAGE"; then
|
||||
mkdir -p "${initdir}/${BUILD_DIR:?}/"
|
||||
rsync -am --include='*/' --include='*.gcno' --exclude='*' "${BUILD_DIR:?}/" "${initdir}/${BUILD_DIR:?}/"
|
||||
# Set effective & default ACLs for the build dir so unprivileged
|
||||
# processes can write gcda files with coverage stats
|
||||
setfacl -R -m 'd:o:rwX' -m 'o:rwX' "${initdir}/${BUILD_DIR:?}/"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user