Skip to content

Commit

Permalink
test: replace Europe/Kiev with Europe/Kyiv
Browse files Browse the repository at this point in the history
As the former is deprecated and might not be available (i.e. on Ubuntu
Noble it's only available after installing the tzdata-legacy package).

(cherry picked from commit 568d979)
(cherry picked from commit 6e778d4)
  • Loading branch information
mrc0mmand authored and bluca committed May 9, 2024
1 parent dc463b3 commit 80643bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test-functions
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ install_zoneinfo() {
inst_any /usr/share/zoneinfo/Australia/Sydney
inst_any /usr/share/zoneinfo/Europe/Berlin
inst_any /usr/share/zoneinfo/Europe/Dublin
inst_any /usr/share/zoneinfo/Europe/Kiev
inst_any /usr/share/zoneinfo/Europe/Kyiv
inst_any /usr/share/zoneinfo/Pacific/Auckland
inst_any /usr/share/zoneinfo/Pacific/Honolulu
inst_any /usr/share/zoneinfo/CET
Expand Down
2 changes: 1 addition & 1 deletion test/units/testsuite-30.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ systemd-run --on-clock-change touch /tmp/clock-changed
test ! -f /tmp/timezone-changed
test ! -f /tmp/clock-changed

timedatectl set-timezone Europe/Kiev
timedatectl set-timezone Europe/Kyiv

while test ! -f /tmp/timezone-changed ; do sleep .5 ; done

Expand Down
8 changes: 4 additions & 4 deletions test/units/testsuite-45.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ testcase_timezone() {
assert_in "Local time:" "$(timedatectl --no-pager)"

echo 'change timezone'
assert_eq "$(timedatectl --no-pager set-timezone Europe/Kiev 2>&1)" ""
assert_eq "$(readlink /etc/localtime | sed 's#^.*zoneinfo/##')" "Europe/Kiev"
assert_eq "$(timedatectl --no-pager set-timezone Europe/Kyiv 2>&1)" ""
assert_eq "$(readlink /etc/localtime | sed 's#^.*zoneinfo/##')" "Europe/Kyiv"
if [[ -f /etc/timezone ]]; then
assert_eq "$(cat /etc/timezone)" "Europe/Kiev"
assert_eq "$(cat /etc/timezone)" "Europe/Kyiv"
fi
assert_in "Time zone: Europe/Kiev \(EES*T, \+0[0-9]00\)" "$(timedatectl)"
assert_in "Time zone: Europe/Kyiv \(EES*T, \+0[0-9]00\)" "$(timedatectl)"

if [[ -n "$ORIG_TZ" ]]; then
echo 'reset timezone to original'
Expand Down

0 comments on commit 80643bc

Please sign in to comment.