summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/rpm.py
diff options
context:
space:
mode:
authorLucian Musat <georgex.l.musat@intel.com>2014-07-25 12:02:30 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-25 16:54:42 +0100
commit8e26ab7d52edd13ffa50b2d0b26606bea8890e76 (patch)
tree2b2bcfc87341d3a5136710c8412fb6348ce2069d /meta/lib/oeqa/runtime/rpm.py
parent242cceeedf2351e4337d8e45fb4c2c8360937ead (diff)
downloadpoky-8e26ab7d52edd13ffa50b2d0b26606bea8890e76.tar.gz
oeqa/rutime: Added testcase decorators for automated runtime tests. Also added LogResults decorator for oeTest class in oetest.py
(From OE-Core rev: 95b83084487d0712362ade8ac487999c3274bb96) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/rpm.py')
-rw-r--r--meta/lib/oeqa/runtime/rpm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/rpm.py b/meta/lib/oeqa/runtime/rpm.py
index 084d22f96b..b17e8b46a8 100644
--- a/meta/lib/oeqa/runtime/rpm.py
+++ b/meta/lib/oeqa/runtime/rpm.py
@@ -18,6 +18,7 @@ class RpmBasicTest(oeRuntimeTest):
18 (status, output) = self.target.run('rpm --help') 18 (status, output) = self.target.run('rpm --help')
19 self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output)) 19 self.assertEqual(status, 0, msg="status and output: %s and %s" % (status,output))
20 20
21 @testcase(191)
21 @skipUnlessPassed('test_rpm_help') 22 @skipUnlessPassed('test_rpm_help')
22 def test_rpm_query(self): 23 def test_rpm_query(self):
23 (status, output) = self.target.run('rpm -q rpm') 24 (status, output) = self.target.run('rpm -q rpm')
@@ -34,11 +35,13 @@ class RpmInstallRemoveTest(oeRuntimeTest):
34 testrpmfile = f 35 testrpmfile = f
35 oeRuntimeTest.tc.target.copy_to(os.path.join(rpmdir,testrpmfile), "/tmp/rpm-doc.rpm") 36 oeRuntimeTest.tc.target.copy_to(os.path.join(rpmdir,testrpmfile), "/tmp/rpm-doc.rpm")
36 37
38 @testcase(192)
37 @skipUnlessPassed('test_rpm_help') 39 @skipUnlessPassed('test_rpm_help')
38 def test_rpm_install(self): 40 def test_rpm_install(self):
39 (status, output) = self.target.run('rpm -ivh /tmp/rpm-doc.rpm') 41 (status, output) = self.target.run('rpm -ivh /tmp/rpm-doc.rpm')
40 self.assertEqual(status, 0, msg="Failed to install rpm-doc package: %s" % output) 42 self.assertEqual(status, 0, msg="Failed to install rpm-doc package: %s" % output)
41 43
44 @testcase(194)
42 @skipUnlessPassed('test_rpm_install') 45 @skipUnlessPassed('test_rpm_install')
43 def test_rpm_remove(self): 46 def test_rpm_remove(self):
44 (status,output) = self.target.run('rpm -e rpm-doc') 47 (status,output) = self.target.run('rpm -e rpm-doc')