summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/rpm.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-08 16:56:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-09 16:31:55 +0100
commitc7592b01478def091b6787412390c61e7ce0a0cd (patch)
tree3c2f26480c6e16fae0ad65b032e3dc0fccfca71b /meta/lib/oeqa/runtime/cases/rpm.py
parentc0dc72bad92e2e4dc0aedb48b969709f821baf73 (diff)
downloadpoky-c7592b01478def091b6787412390c61e7ce0a0cd.tar.gz
oeqa: Drop OETestID
These IDs refer to testopia which we're no longer using. We would now use the test names to definitively reference tests and the IDs can be dropped, along with their supporting code. (From OE-Core rev: 8e2d0575e4e7036b5f60e632f377a8ab2b96ead8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/rpm.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/rpm.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/meta/lib/oeqa/runtime/cases/rpm.py b/meta/lib/oeqa/runtime/cases/rpm.py
index de92157c52..76176e632e 100644
--- a/meta/lib/oeqa/runtime/cases/rpm.py
+++ b/meta/lib/oeqa/runtime/cases/rpm.py
@@ -3,14 +3,12 @@ import fnmatch
3 3
4from oeqa.runtime.case import OERuntimeTestCase 4from oeqa.runtime.case import OERuntimeTestCase
5from oeqa.core.decorator.depends import OETestDepends 5from oeqa.core.decorator.depends import OETestDepends
6from oeqa.core.decorator.oeid import OETestID
7from oeqa.core.decorator.data import skipIfDataVar 6from oeqa.core.decorator.data import skipIfDataVar
8from oeqa.runtime.decorator.package import OEHasPackage 7from oeqa.runtime.decorator.package import OEHasPackage
9from oeqa.core.utils.path import findFile 8from oeqa.core.utils.path import findFile
10 9
11class RpmBasicTest(OERuntimeTestCase): 10class RpmBasicTest(OERuntimeTestCase):
12 11
13 @OETestID(960)
14 @OEHasPackage(['rpm']) 12 @OEHasPackage(['rpm'])
15 @OETestDepends(['ssh.SSHTest.test_ssh']) 13 @OETestDepends(['ssh.SSHTest.test_ssh'])
16 def test_rpm_help(self): 14 def test_rpm_help(self):
@@ -18,7 +16,6 @@ class RpmBasicTest(OERuntimeTestCase):
18 msg = 'status and output: %s and %s' % (status, output) 16 msg = 'status and output: %s and %s' % (status, output)
19 self.assertEqual(status, 0, msg=msg) 17 self.assertEqual(status, 0, msg=msg)
20 18
21 @OETestID(191)
22 @OETestDepends(['rpm.RpmBasicTest.test_rpm_help']) 19 @OETestDepends(['rpm.RpmBasicTest.test_rpm_help'])
23 def test_rpm_query(self): 20 def test_rpm_query(self):
24 status, output = self.target.run('ls /var/lib/rpm/') 21 status, output = self.target.run('ls /var/lib/rpm/')
@@ -43,7 +40,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
43 cls.test_file = os.path.join(rpmdir, f) 40 cls.test_file = os.path.join(rpmdir, f)
44 cls.dst = '/tmp/base-passwd-doc.rpm' 41 cls.dst = '/tmp/base-passwd-doc.rpm'
45 42
46 @OETestID(192)
47 @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) 43 @OETestDepends(['rpm.RpmBasicTest.test_rpm_query'])
48 def test_rpm_install(self): 44 def test_rpm_install(self):
49 self.tc.target.copyTo(self.test_file, self.dst) 45 self.tc.target.copyTo(self.test_file, self.dst)
@@ -52,14 +48,12 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
52 self.assertEqual(status, 0, msg=msg) 48 self.assertEqual(status, 0, msg=msg)
53 self.tc.target.run('rm -f %s' % self.dst) 49 self.tc.target.run('rm -f %s' % self.dst)
54 50
55 @OETestID(194)
56 @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_install']) 51 @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_install'])
57 def test_rpm_remove(self): 52 def test_rpm_remove(self):
58 status,output = self.target.run('rpm -e base-passwd-doc') 53 status,output = self.target.run('rpm -e base-passwd-doc')
59 msg = 'Failed to remove base-passwd-doc package: %s' % output 54 msg = 'Failed to remove base-passwd-doc package: %s' % output
60 self.assertEqual(status, 0, msg=msg) 55 self.assertEqual(status, 0, msg=msg)
61 56
62 @OETestID(1096)
63 @OETestDepends(['rpm.RpmBasicTest.test_rpm_query']) 57 @OETestDepends(['rpm.RpmBasicTest.test_rpm_query'])
64 def test_rpm_query_nonroot(self): 58 def test_rpm_query_nonroot(self):
65 59
@@ -92,7 +86,6 @@ class RpmInstallRemoveTest(OERuntimeTestCase):
92 finally: 86 finally:
93 unset_up_test_user(tuser) 87 unset_up_test_user(tuser)
94 88
95 @OETestID(195)
96 @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_remove']) 89 @OETestDepends(['rpm.RpmInstallRemoveTest.test_rpm_remove'])
97 def test_check_rpm_install_removal_log_file_size(self): 90 def test_check_rpm_install_removal_log_file_size(self):
98 """ 91 """