summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/connman.py
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2015-10-01 16:42:09 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 15:08:21 +0100
commita7329e1df30622a0b6f88f2afcf3bc77622c3b29 (patch)
treee687a555a913662b11f6f082ea5421c05d8f729a /meta/lib/oeqa/runtime/connman.py
parentc2e78e33f01e3e5a42efbd546b3d9dbb728a4576 (diff)
downloadpoky-a7329e1df30622a0b6f88f2afcf3bc77622c3b29.tar.gz
Revert "oeqa/runtime: Added one runtime testcase in connman."
connman daemon forks during normal usage, so this test is no longer valid and generates sometimes false positives. This reverts commit 7d01c595c96eb3d67b90caf71050c4e9345257de. (From OE-Core rev: bc974be50d5eff4eed00078ad1d1976ee81c5ecc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/connman.py')
-rw-r--r--meta/lib/oeqa/runtime/connman.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/meta/lib/oeqa/runtime/connman.py b/meta/lib/oeqa/runtime/connman.py
index ee69e5df96..bd9dba3bd0 100644
--- a/meta/lib/oeqa/runtime/connman.py
+++ b/meta/lib/oeqa/runtime/connman.py
@@ -29,26 +29,3 @@ class ConnmanTest(oeRuntimeTest):
29 if status != 0: 29 if status != 0:
30 print self.service_status("connman") 30 print self.service_status("connman")
31 self.fail("No connmand process running") 31 self.fail("No connmand process running")
32
33 @testcase(223)
34 def test_only_one_connmand_in_background(self):
35 """
36 Summary: Only one connmand in background
37 Expected: There will be only one connmand instance in background.
38 Product: BSPs
39 Author: Alexandru Georgescu <alexandru.c.georgescu@intel.com>
40 AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
41 """
42
43 # Make sure that 'connmand' is running in background
44 (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand')
45 self.assertEqual(0, status, 'Failed to find "connmand" process running in background.')
46
47 # Start a new instance of 'connmand'
48 (status, output) = self.target.run('connmand')
49 self.assertEqual(0, status, 'Failed to start a new "connmand" process.')
50
51 # Make sure that only one 'connmand' is running in background
52 (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand | wc -l')
53 self.assertEqual(0, status, 'Failed to find "connmand" process running in background.')
54 self.assertEqual(1, int(output), 'Found {} connmand processes running, expected 1.'.format(output))