From 294a6d295a9d92c037193e14601392fea4c01128 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Tue, 16 Apr 2019 18:35:45 +0200 Subject: [PATCH] tests: fix testTime and testTimeServers test regressions on debian-testing 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. --- test/verify/check-system-info | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/verify/check-system-info b/test/verify/check-system-info index 9143252167ee..d4ba903b0831 100755 --- a/test/verify/check-system-info +++ b/test/verify/check-system-info @@ -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):