diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-10-27 16:39:47 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | b61326efb1bc66202831f9710716b5171a722039 (patch) | |
tree | 31e229ee225f0a816eb60a5fb721b021f8eab3e2 /meta/lib/oeqa/runtime/connman.py | |
parent | ba1aec3407e38f4dc4141e4d6300b3d538dc9dd3 (diff) | |
download | poky-b61326efb1bc66202831f9710716b5171a722039.tar.gz |
oeqa/runtime: Move to runtime_cases
The new oeqa core framework will modify the structure of the runtime
folder the new runtime folder will have python code inside to support
runtime test cases.
(From OE-Core rev: 637b712096e9d230e15b1a432a561e4118db34c8)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
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.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/meta/lib/oeqa/runtime/connman.py b/meta/lib/oeqa/runtime/connman.py deleted file mode 100644 index 003fefe2ce..0000000000 --- a/meta/lib/oeqa/runtime/connman.py +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | import unittest | ||
2 | from oeqa.oetest import oeRuntimeTest, skipModule | ||
3 | from oeqa.utils.decorators import * | ||
4 | |||
5 | def setUpModule(): | ||
6 | if not oeRuntimeTest.hasPackage("connman"): | ||
7 | skipModule("No connman package in image") | ||
8 | |||
9 | |||
10 | class ConnmanTest(oeRuntimeTest): | ||
11 | |||
12 | def service_status(self, service): | ||
13 | if oeRuntimeTest.hasFeature("systemd"): | ||
14 | (status, output) = self.target.run('systemctl status -l %s' % service) | ||
15 | return output | ||
16 | else: | ||
17 | return "Unable to get status or logs for %s" % service | ||
18 | |||
19 | @testcase(961) | ||
20 | @skipUnlessPassed('test_ssh') | ||
21 | def test_connmand_help(self): | ||
22 | (status, output) = self.target.run('/usr/sbin/connmand --help') | ||
23 | self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output)) | ||
24 | |||
25 | @testcase(221) | ||
26 | @skipUnlessPassed('test_connmand_help') | ||
27 | def test_connmand_running(self): | ||
28 | (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand') | ||
29 | if status != 0: | ||
30 | print(self.service_status("connman")) | ||
31 | self.fail("No connmand process running") | ||