Merge "CI: Skip test_ntp_clock_synchronized on Ubuntu 24.04"
This commit is contained in:
commit
ecb883c3bb
@ -25,6 +25,12 @@ def _is_dnf_mirror():
|
|||||||
return info == 'centos'
|
return info == 'centos'
|
||||||
|
|
||||||
|
|
||||||
|
def _is_ubuntu_noble():
|
||||||
|
name = distro.name()
|
||||||
|
version = distro.version()
|
||||||
|
return name == 'Ubuntu' and version == 24.04
|
||||||
|
|
||||||
|
|
||||||
def test_network_ethernet(host):
|
def test_network_ethernet(host):
|
||||||
interface = host.interface('dummy2')
|
interface = host.interface('dummy2')
|
||||||
assert interface.exists
|
assert interface.exists
|
||||||
@ -198,6 +204,9 @@ def test_ntp_non_default_time_server(host):
|
|||||||
assert "time.cloudflare.com" in chrony_config.content_string
|
assert "time.cloudflare.com" in chrony_config.content_string
|
||||||
|
|
||||||
|
|
||||||
|
# TODO(priteau): Remove once we force time sync
|
||||||
|
@pytest.mark.skipif(_is_ubuntu_noble(),
|
||||||
|
reason="Clock often fails to synchronize on Ubuntu Noble")
|
||||||
def test_ntp_clock_synchronized(host):
|
def test_ntp_clock_synchronized(host):
|
||||||
# Tests that the clock is synchronized
|
# Tests that the clock is synchronized
|
||||||
status_output = host.check_output("timedatectl status")
|
status_output = host.check_output("timedatectl status")
|
||||||
|
Loading…
Reference in New Issue
Block a user