mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 23:21:22 +03:00
test-time-util: skip missing timezones
Fixes #20089. This is essentially a packaging bug in CentOS: the db lists a timezone which is not present in /usr/share/zoneinfo. Let's skip this gracefully.
This commit is contained in:
parent
bdaeafea5d
commit
dc9849b1e5
@ -273,8 +273,9 @@ static void test_get_timezones(void) {
|
||||
assert_se(r == 0);
|
||||
|
||||
STRV_FOREACH(zone, zones) {
|
||||
log_info("zone: %s", *zone);
|
||||
assert_se(timezone_is_valid(*zone, LOG_ERR));
|
||||
r = verify_timezone(*zone, LOG_ERR);
|
||||
log_debug_errno(r, "verify_timezone(\"%s\"): %m", *zone);
|
||||
assert_se(r >= 0 || r == -ENOENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user