summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/rpm.py
diff options
context:
space:
mode:
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')