test: skip TEST-07-PID1.DeferReactivation with sanitizers

This test relies on tight timers, and is flaky under sanitizers
as everything slows down a lot. Just skip it.
This commit is contained in:
Luca Boccassi
2026-05-04 21:06:02 +01:00
committed by Frantisek Sumsal
parent 29b00c956f
commit a551c1bd56

View File

@@ -4,6 +4,13 @@
set -eux
set -o pipefail
if [[ -v ASAN_OPTIONS ]]; then
# Under sanitizers the service is slow enough that the calendar timer with 5s resolution ends up
# missing ticks, making the test flaky
echo "Sanitizers detected, skipping the test..."
exit 0
fi
systemctl start defer-reactivation.timer
timeout 20 bash -c 'until [[ -e /tmp/defer-reactivation.log ]]; do sleep .5; done'