summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-09-09 21:05:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:24 +0100
commit44ae903e30245e4e8825e1805b5ab6c3fb19ff33 (patch)
tree7d310ecb01e33522ae35b3a53f26cc968a38c49f /meta
parente20c9ea4975bd457ae5d2bb7ee991796fa9fe798 (diff)
downloadpoky-44ae903e30245e4e8825e1805b5ab6c3fb19ff33.tar.gz
oeqa/runtime/date: stop systemd-timesyncd during test
There's a race between systemd-timesyncd manipulating the system time (with NTP lookups) and the test case's time manipulation. Prevent this by stopping systemd-timesyncd for the duration of the test case. Thanks to Khem Raj for root-causing this. (From OE-Core rev: 5334f1b1e9363fa9c128289b51ade55c7ae1a0a3) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/date.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/date.py b/meta/lib/oeqa/runtime/date.py
index 97e8ee42ad..3a8fe84817 100644
--- a/meta/lib/oeqa/runtime/date.py
+++ b/meta/lib/oeqa/runtime/date.py
@@ -4,6 +4,14 @@ import re
4 4
5class DateTest(oeRuntimeTest): 5class DateTest(oeRuntimeTest):
6 6
7 def setUp(self):
8 if oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", True) == "systemd":
9 self.target.run('systemctl stop systemd-timesyncd')
10
11 def tearDown(self):
12 if oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", True) == "systemd":
13 self.target.run('systemctl start systemd-timesyncd')
14
7 @testcase(211) 15 @testcase(211)
8 @skipUnlessPassed("test_ssh") 16 @skipUnlessPassed("test_ssh")
9 def test_date(self): 17 def test_date(self):