On 8 September 2015 at 19:09, Khem Raj <[email protected]> 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
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
