From 04ef7eab939b6d7135a9debb0dae0364aa831de9 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:47:02 +0100 Subject: [PATCH] fix(test): `/etc/timezone` is no longer reliable on Debian Hence, I opted to check the link `/etc/localtime` instead. Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- .../tests/parallel/set3/container_configuration/time.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tests/parallel/set3/container_configuration/time.bats b/test/tests/parallel/set3/container_configuration/time.bats index 350880f1..788170f1 100644 --- a/test/tests/parallel/set3/container_configuration/time.bats +++ b/test/tests/parallel/set3/container_configuration/time.bats @@ -13,11 +13,11 @@ function setup_file() { function teardown_file() { _default_teardown ; } @test "setting the time with TZ works correctly" { - _run_in_container cat /etc/timezone + _run_in_container realpath -eL /etc/localtime assert_success - assert_output 'Asia/Jakarta' + assert_output /usr/share/zoneinfo/Asia/Jakarta - _run_in_container date '+%Z' + _run_in_container date +%Z assert_success - assert_output 'WIB' + assert_output WIB }