diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/rpm.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/rpm.py | 7 |
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 | ||
4 | from oeqa.runtime.case import OERuntimeTestCase | 4 | from oeqa.runtime.case import OERuntimeTestCase |
5 | from oeqa.core.decorator.depends import OETestDepends | 5 | from oeqa.core.decorator.depends import OETestDepends |
6 | from oeqa.core.decorator.oeid import OETestID | ||
7 | from oeqa.core.decorator.data import skipIfDataVar | 6 | from oeqa.core.decorator.data import skipIfDataVar |
8 | from oeqa.runtime.decorator.package import OEHasPackage | 7 | from oeqa.runtime.decorator.package import OEHasPackage |
9 | from oeqa.core.utils.path import findFile | 8 | from oeqa.core.utils.path import findFile |
10 | 9 | ||
11 | class RpmBasicTest(OERuntimeTestCase): | 10 | class 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 | """ |