<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 8 September 2015 at 19:09, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1vr" class="a3s" style="overflow:hidden">this patch fixed it during autoruns, but date test is common for<br>
sysvint and systemd it ignores the outputs of systemctl cmds<br>
so in theory it will work on both sysvinit and systemd. Although its not elegant<br>
<br>
diff --git a/meta/lib/oeqa/runtime/date.py b/meta/lib/oeqa/runtime/date.py<br>
index 97e8ee4..f73ad1c 100644<br>
--- a/meta/lib/oeqa/runtime/date.py<br>
+++ b/meta/lib/oeqa/runtime/date.py<br>
@@ -7,6 +7,7 @@ class DateTest(oeRuntimeTest):<br>
@testcase(211)<br>
@skipUnlessPassed("test_ssh")<br>
def test_date(self):<br>
+ (status, output) = self.target.run('systemctl stop systemd-timesyncd')<br>
(status, output) = self.target.run('date +"%Y-%m-%d %T"')<br>
self.assertEqual(status, 0, msg="Failed to get initial date,<br>
output: %s" % output)<br>
oldDate = output<br>
@@ -21,3 +22,4 @@ class DateTest(oeRuntimeTest):<br>
<br>
(status, output) = self.target.run('date -s "%s"' % oldDate)<br>
self.assertEqual(status, 0, msg="Failed to reset date, output:<br>
%s" % output)<br>
+ (status, output) = self.target.run('systemctl start systemd-timesyncd')</div></blockquote></div><br>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.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>