]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CI: set TZ= in a unit test run to ensure tests don't break 31095/head
authorLuca Boccassi <bluca@debian.org>
Fri, 26 Jan 2024 00:25:04 +0000 (00:25 +0000)
committerLuca Boccassi <bluca@debian.org>
Fri, 26 Jan 2024 00:25:04 +0000 (00:25 +0000)
.github/workflows/unit_tests.sh

index dc5bf5dd4fcb62bf32f587757fe7ada9a0d3fc30..c1a5ede38332503e620df0b72a404304d5ce5a79 100755 (executable)
@@ -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)