<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 8 September 2015 at 19:09, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</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(&quot;test_ssh&quot;)<br>
    def test_date(self):<br>
+        (status, output) = self.target.run(&#39;systemctl stop systemd-timesyncd&#39;)<br>
        (status, output) = self.target.run(&#39;date +&quot;%Y-%m-%d %T&quot;&#39;)<br>
        self.assertEqual(status, 0, msg=&quot;Failed to get initial date,<br>
output: %s&quot; % output)<br>
        oldDate = output<br>
@@ -21,3 +22,4 @@ class DateTest(oeRuntimeTest):<br>
<br>
        (status, output) = self.target.run(&#39;date -s &quot;%s&quot;&#39; % oldDate)<br>
        self.assertEqual(status, 0, msg=&quot;Failed to reset date, output:<br>
%s&quot; % output)<br>
+        (status, output) = self.target.run(&#39;systemctl start systemd-timesyncd&#39;)</div></blockquote></div><br>Thanks for looking at this, I&#39;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>