[OE-core] [PATCH 0/4] Systemd Upgrade

Burton, Ross ross.burton at intel.com
Wed Sep 9 20:13:43 UTC 2015


On 8 September 2015 at 19:09, Khem Raj <raj.khem at gmail.com> wrote:

> this patch fixed it during autoruns, but date test is common for
> sysvint and systemd it ignores the outputs of systemctl cmds
> so in theory it will work on both sysvinit and systemd. Although its not
> elegant
>
> diff --git a/meta/lib/oeqa/runtime/date.py b/meta/lib/oeqa/runtime/date.py
> index 97e8ee4..f73ad1c 100644
> --- a/meta/lib/oeqa/runtime/date.py
> +++ b/meta/lib/oeqa/runtime/date.py
> @@ -7,6 +7,7 @@ class DateTest(oeRuntimeTest):
>     @testcase(211)
>     @skipUnlessPassed("test_ssh")
>     def test_date(self):
> +        (status, output) = self.target.run('systemctl stop
> systemd-timesyncd')
>         (status, output) = self.target.run('date +"%Y-%m-%d %T"')
>         self.assertEqual(status, 0, msg="Failed to get initial date,
> output: %s" % output)
>         oldDate = output
> @@ -21,3 +22,4 @@ class DateTest(oeRuntimeTest):
>
>         (status, output) = self.target.run('date -s "%s"' % oldDate)
>         self.assertEqual(status, 0, msg="Failed to reset date, output:
> %s" % output)
> +        (status, output) = self.target.run('systemctl start
> systemd-timesyncd')
>

Thanks for looking at this, I've rewritten this to use setup/teardown
methods and check that systemd is being used and will send the patch
shortly.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150909/06a3c830/attachment-0002.html>


More information about the Openembedded-core mailing list