1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

CI: set TZ= in a unit test run to ensure tests don't break

(cherry picked from commit 431f836bd4)
(cherry picked from commit b7fe2d4f97)
(cherry picked from commit ed703826c4)
(cherry picked from commit c4629b7046)
This commit is contained in:
Luca Boccassi 2024-01-26 00:25:04 +00:00 committed by Luca Boccassi
parent d91a1c0f2c
commit 8bd5490fd0

View File

@ -76,7 +76,8 @@ for phase in "${PHASES[@]}"; do
MESON_ARGS+=(--fatal-meson-warnings)
run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
ninja -C build -v
meson test -C build --print-errorlogs
# Ensure setting a timezone (like the reproducible build tests do) does not break time/date unit tests
TZ=GMT+12 meson test -C build --print-errorlogs
;;
RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN_NO_DEPS)
MESON_ARGS=(--optimization=1)