From: Luca Boccassi Date: Fri, 26 Jan 2024 00:25:04 +0000 (+0000) Subject: CI: set TZ= in a unit test run to ensure tests don't break X-Git-Tag: v256-rc1~1032^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31095%2Fhead;p=thirdparty%2Fsystemd.git CI: set TZ= in a unit test run to ensure tests don't break --- diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh index dc5bf5dd4fc..c1a5ede3833 100755 --- a/.github/workflows/unit_tests.sh +++ b/.github/workflows/unit_tests.sh @@ -73,7 +73,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)