]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: replace Europe/Kiev with Europe/Kyiv
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 2 May 2024 18:40:10 +0000 (20:40 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 4 May 2024 10:52:49 +0000 (12:52 +0200)
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).

test/test-functions
test/units/testsuite-30.sh
test/units/testsuite-45.sh

index 10ea6ef03a127f3f859fa44d62cdfd222789cf54..6e889f838b51c70c92db0cb8c9ddb12342b89d68 100644 (file)
@@ -2299,7 +2299,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
index 104c87bfbba8fa69504c071187a51c438bae0cb2..83698b8da697c9224b4bca269904cd51f1b98914 100755 (executable)
@@ -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
 
index 35d5503f73a7dcf3fdafa2c002b322aa11f4c6fc..dff3ed0b9e1a0c0c9a1b1a673cc789d6d1ea9e1b 100755 (executable)
@@ -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'