]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/runtime/cases: Only disable/enable for current boot
authorWes Lindauer <wesley.lindauer@gmail.com>
Mon, 12 Apr 2021 03:50:34 +0000 (23:50 -0400)
committerSteve Sakoman <steve@sakoman.com>
Wed, 4 Aug 2021 19:57:23 +0000 (09:57 -1000)
commit1d848b939e503df94178822c9ca8bb26d0e75231
tree56db24b9034da30cdcc62daf6d64b7d3a1c16e86
parent7c6624dbea2df5a47752e7684045d9d1aa41c3e5
oeqa/runtime/cases: Only disable/enable for current boot

Previously doing a stop/start worked, but using a disable/enable does
not work on a read-only rootfs. Add a --runtime flag to systemctl so
that systemd only modifies the current boot and does not attempt to
write to the filesystem.

This also keeps the test from making a permanent (one could argue
policy) change to the running system being tested. i.e. What if the
image being tested had intentionally disabled the timesyncd service in
preference to using chrony or ntpd? The test shouldn't assume that the
user wants the timesyncd service enabled.

Signed-off-by: Wes Lindauer <wesley.lindauer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 43dd83b6a325589368c980a3f17cab90935aaeb0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/runtime/cases/date.py
meta/lib/oeqa/runtime/cases/rtc.py