diff options
author | Ross Burton <ross.burton@intel.com> | 2013-11-21 14:57:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-22 12:03:02 +0000 |
commit | afe82ef3c45362a6c9eca168b458a58db331617c (patch) | |
tree | 2714b0d3b11fe349937c780288dada456c620b2d /meta | |
parent | b4a0164418bc34f6870d45da2e542ebe69a203b7 (diff) | |
download | poky-afe82ef3c45362a6c9eca168b458a58db331617c.tar.gz |
oeqa/connman: disable unique test
The connman unique test starts another instance of connmand and then does a ps to
verify that there's only one of these running, on the assumption that the new
one has quit because there's already one running (started by init).
However, connmand is forking into the background straight away so there's a race
between running ps and the second connmand discovering the first and exiting.
This race can be seen because the test displays the output of ps, and by the
time that second ps has been executed the new connmand has exited.
This is a classic race condition and on a heavily loaded autobuilder inserting
an arbitrary sleep isn't wise. In the scheme of things this test isn't very
useful, so delete it.
(From OE-Core rev: 80ef721140c79e29430d0a5692a5c176db0061e6)
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/connman.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/lib/oeqa/runtime/connman.py b/meta/lib/oeqa/runtime/connman.py index 5ef96f6b06..b592ecca04 100644 --- a/meta/lib/oeqa/runtime/connman.py +++ b/meta/lib/oeqa/runtime/connman.py | |||
@@ -19,11 +19,3 @@ class ConnmanTest(oeRuntimeTest): | |||
19 | def test_connmand_running(self): | 19 | def test_connmand_running(self): |
20 | (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand') | 20 | (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand') |
21 | self.assertEqual(status, 0, msg="no connmand process, ps output: %s" % self.target.run(oeRuntimeTest.pscmd)[1]) | 21 | self.assertEqual(status, 0, msg="no connmand process, ps output: %s" % self.target.run(oeRuntimeTest.pscmd)[1]) |
22 | |||
23 | @skipUnlessPassed('test_connmand_running') | ||
24 | def test_connmand_unique(self): | ||
25 | self.target.run('/usr/sbin/connmand') | ||
26 | output = self.target.run(oeRuntimeTest.pscmd + ' | grep -c [c]onnmand')[1] | ||
27 | self.assertEqual(output, "1", msg="more than one connmand running in background, ps output: %s\n%s" % (output, self.target.run(oeRuntimeTest.pscmd)[1])) | ||
28 | |||
29 | |||