From: Alex Kiernan <alex.kiernan@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [RFC PATCH 07/11] oeqa/runtime/cases: Disable and stop systemd-timesyncd
Date: Tue, 17 Mar 2020 15:22:59 +0000 [thread overview]
Message-ID: <20200317152303.4600-8-alex.kiernan@gmail.com> (raw)
In-Reply-To: <20200317152303.4600-1-alex.kiernan@gmail.com>
Stopping systemd-timesyncd doesn't prevent it being restarted by a
different transaction within systemd. Disable the service instead during
the date test to ensure it can't be restarted.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
meta/lib/oeqa/runtime/cases/date.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/runtime/cases/date.py b/meta/lib/oeqa/runtime/cases/date.py
index 7750a7293f8e..fdd2a6ae587e 100644
--- a/meta/lib/oeqa/runtime/cases/date.py
+++ b/meta/lib/oeqa/runtime/cases/date.py
@@ -13,12 +13,12 @@ class DateTest(OERuntimeTestCase):
def setUp(self):
if self.tc.td.get('VIRTUAL-RUNTIME_init_manager') == 'systemd':
self.logger.debug('Stopping systemd-timesyncd daemon')
- self.target.run('systemctl stop systemd-timesyncd')
+ self.target.run('systemctl disable --now systemd-timesyncd')
def tearDown(self):
if self.tc.td.get('VIRTUAL-RUNTIME_init_manager') == 'systemd':
self.logger.debug('Starting systemd-timesyncd daemon')
- self.target.run('systemctl start systemd-timesyncd')
+ self.target.run('systemctl enable --now systemd-timesyncd')
@OETestDepends(['ssh.SSHTest.test_ssh'])
@OEHasPackage(['coreutils', 'busybox'])
--
2.17.1
next prev parent reply other threads:[~2020-03-17 15:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-17 15:22 [RFC PATCH 00/11] Systemd 245 and related updates Alex Kiernan
2020-03-17 15:22 ` [RFC PATCH 01/11] systemd: Package udev rules explicitly Alex Kiernan
2020-03-18 3:02 ` Otavio Salvador
2020-03-18 17:18 ` Alex Kiernan
2020-03-18 23:18 ` Otavio Salvador
2020-03-17 15:22 ` [RFC PATCH 02/11] systemd: Reinstate systemd-hwdb-update.service Alex Kiernan
2020-03-18 3:03 ` Otavio Salvador
2020-03-17 15:22 ` [RFC PATCH 03/11] systemd: Add sch-fq-codel to RRECOMMENDS Alex Kiernan
2020-03-18 3:04 ` Otavio Salvador
2020-03-17 15:22 ` [RFC PATCH 04/11] systemd: Add PACKAGECONFIG for sysvinit Alex Kiernan
2020-03-17 17:47 ` Peter Kjellerstedt
2020-03-17 15:22 ` [RFC PATCH 05/11] systemd: Remove X11 related files when disabled Alex Kiernan
2020-03-18 3:05 ` Otavio Salvador
2020-03-17 15:22 ` [RFC PATCH 06/11] psplash: Set RemainAfterExit on systemd units Alex Kiernan
2020-03-18 3:06 ` Otavio Salvador
2020-03-17 15:22 ` Alex Kiernan [this message]
2020-03-18 3:06 ` [RFC PATCH 07/11] oeqa/runtime/cases: Disable and stop systemd-timesyncd Otavio Salvador
2020-03-17 15:23 ` [RFC PATCH 08/11] systemd: upgrade v244.3 -> v245 Alex Kiernan
2020-03-18 3:12 ` Otavio Salvador
2020-03-17 15:23 ` [RFC PATCH 09/11] systemd: Enable smack based on DISTRO_FEATURES Alex Kiernan
2020-03-18 3:07 ` Otavio Salvador
2020-03-17 15:23 ` [RFC PATCH 10/11] systemd: Enable audit " Alex Kiernan
2020-03-18 3:08 ` Otavio Salvador
2020-03-17 15:23 ` [RFC PATCH 11/11] systemd: Enable acl " Alex Kiernan
2020-03-18 3:13 ` Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200317152303.4600-8-alex.kiernan@gmail.com \
--to=alex.kiernan@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox