Skip to content

Commit

Permalink
tests: fix testTime and testTimeServers test regressions on debian-te…
Browse files Browse the repository at this point in the history
…sting

On Debian timesyncd can't be started of any other NTP daemon is
installed.
See https://salsa.debian.org/systemd-team/systemd/commit/e1b3868e8b297a

Out test images have chrony installed as a dependency of freeipa-client,
so we need to remove that package before executing the NTP related
tests, since cockpit only works with timesyncd for NTP cponfiguration.
  • Loading branch information
KKoukiou committed Apr 16, 2019
1 parent 5bcc6b9 commit 294a6d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ def ssh_reconnect(machine, timeout_sec=120):


class TestSystemInfo(MachineCase):
def setUp(self):
MachineCase.setUp(self)

# Debian will not allow timesyncd to start if any other NTP packge is installed
# We only support timesyncd for NTP configuration, so make sure chrony
# is not installed in the debian test images
if self.machine.image == "debian-testing":
self.machine.execute("dpkg --remove chrony");

@enableAxe
def testBasic(self):
Expand Down

0 comments on commit 294a6d2

Please sign in to comment.