mirror of
https://github.com/systemd/systemd.git
synced 2026-06-24 08:47:49 +00:00
test: don't strip directives from test units
The original find was matching even our test units, which caused issues when the check was extended with Memory*= directives, as we stripped them off from test units for TEST-55-OOMD where we certainly need them. Since the stripping was meant primarily for "production-grade" units, let's limit it to units under /etc/systemd/system/ and /usr/lib/systemd/system/.
This commit is contained in:
@@ -11,7 +11,7 @@ fi
|
||||
|
||||
# ASAN and syscall filters aren't compatible with each other. Also, drop any memory limits
|
||||
# as these are quite unpredictable when running under sanitizers.
|
||||
find "$BUILDROOT"/usr "$BUILDROOT"/etc -name '*.service' -type f | while read -r unit; do
|
||||
find "$BUILDROOT"/{etc,usr/lib}/systemd/system/ -name '*.service' -type f | while read -r unit; do
|
||||
if grep -q -e MemoryDeny -e MemoryMax -e MemoryHigh -e MemorySwapMax -e SystemCall "$unit" ; then
|
||||
mkdir -p "$unit.d"
|
||||
cat > "$unit.d/sanitizer-compat.conf" <<EOF
|
||||
|
||||
Reference in New Issue
Block a user