summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/dnf.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/dnf.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/dnf.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/meta/lib/oeqa/runtime/cases/dnf.py b/meta/lib/oeqa/runtime/cases/dnf.py
index c1ed39d776..f235bdd58a 100644
--- a/meta/lib/oeqa/runtime/cases/dnf.py
+++ b/meta/lib/oeqa/runtime/cases/dnf.py
@@ -5,7 +5,6 @@ from oeqa.utils.httpserver import HTTPService
5 5
6from oeqa.runtime.case import OERuntimeTestCase 6from oeqa.runtime.case import OERuntimeTestCase
7from oeqa.core.decorator.depends import OETestDepends 7from oeqa.core.decorator.depends import OETestDepends
8from oeqa.core.decorator.oeid import OETestID
9from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature 8from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
10from oeqa.runtime.decorator.package import OEHasPackage 9from oeqa.runtime.decorator.package import OEHasPackage
11 10
@@ -26,27 +25,22 @@ class DnfBasicTest(DnfTest):
26 'RPM is not the primary package manager') 25 'RPM is not the primary package manager')
27 @OEHasPackage(['dnf']) 26 @OEHasPackage(['dnf'])
28 @OETestDepends(['ssh.SSHTest.test_ssh']) 27 @OETestDepends(['ssh.SSHTest.test_ssh'])
29 @OETestID(1735)
30 def test_dnf_help(self): 28 def test_dnf_help(self):
31 self.dnf('--help') 29 self.dnf('--help')
32 30
33 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 31 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
34 @OETestID(1739)
35 def test_dnf_version(self): 32 def test_dnf_version(self):
36 self.dnf('--version') 33 self.dnf('--version')
37 34
38 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 35 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
39 @OETestID(1737)
40 def test_dnf_info(self): 36 def test_dnf_info(self):
41 self.dnf('info dnf') 37 self.dnf('info dnf')
42 38
43 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 39 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
44 @OETestID(1738)
45 def test_dnf_search(self): 40 def test_dnf_search(self):
46 self.dnf('search dnf') 41 self.dnf('search dnf')
47 42
48 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 43 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
49 @OETestID(1736)
50 def test_dnf_history(self): 44 def test_dnf_history(self):
51 self.dnf('history') 45 self.dnf('history')
52 46
@@ -71,7 +65,6 @@ class DnfRepoTest(DnfTest):
71 return output 65 return output
72 66
73 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) 67 @OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
74 @OETestID(1744)
75 def test_dnf_makecache(self): 68 def test_dnf_makecache(self):
76 self.dnf_with_repo('makecache') 69 self.dnf_with_repo('makecache')
77 70
@@ -82,12 +75,10 @@ class DnfRepoTest(DnfTest):
82# self.dnf_with_repo('repolist') 75# self.dnf_with_repo('repolist')
83 76
84 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 77 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
85 @OETestID(1746)
86 def test_dnf_repoinfo(self): 78 def test_dnf_repoinfo(self):
87 self.dnf_with_repo('repoinfo') 79 self.dnf_with_repo('repoinfo')
88 80
89 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 81 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
90 @OETestID(1740)
91 def test_dnf_install(self): 82 def test_dnf_install(self):
92 output = self.dnf_with_repo('list run-postinsts-dev') 83 output = self.dnf_with_repo('list run-postinsts-dev')
93 if 'Installed Packages' in output: 84 if 'Installed Packages' in output:
@@ -95,13 +86,11 @@ class DnfRepoTest(DnfTest):
95 self.dnf_with_repo('install -y run-postinsts-dev') 86 self.dnf_with_repo('install -y run-postinsts-dev')
96 87
97 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) 88 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
98 @OETestID(1741)
99 def test_dnf_install_dependency(self): 89 def test_dnf_install_dependency(self):
100 self.dnf_with_repo('remove -y run-postinsts') 90 self.dnf_with_repo('remove -y run-postinsts')
101 self.dnf_with_repo('install -y run-postinsts-dev') 91 self.dnf_with_repo('install -y run-postinsts-dev')
102 92
103 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency']) 93 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_dependency'])
104 @OETestID(1742)
105 def test_dnf_install_from_disk(self): 94 def test_dnf_install_from_disk(self):
106 self.dnf_with_repo('remove -y run-postinsts-dev') 95 self.dnf_with_repo('remove -y run-postinsts-dev')
107 self.dnf_with_repo('install -y --downloadonly run-postinsts-dev') 96 self.dnf_with_repo('install -y --downloadonly run-postinsts-dev')
@@ -110,7 +99,6 @@ class DnfRepoTest(DnfTest):
110 self.dnf_with_repo('install -y %s' % output) 99 self.dnf_with_repo('install -y %s' % output)
111 100
112 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk']) 101 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install_from_disk'])
113 @OETestID(1743)
114 def test_dnf_install_from_http(self): 102 def test_dnf_install_from_http(self):
115 output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"), 103 output = subprocess.check_output('%s %s -name run-postinsts-dev*' % (bb.utils.which(os.getenv('PATH'), "find"),
116 os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8") 104 os.path.join(self.tc.td['WORKDIR'], 'oe-testimage-repo')), shell=True).decode("utf-8")
@@ -120,12 +108,10 @@ class DnfRepoTest(DnfTest):
120 self.dnf_with_repo('install -y %s' % url) 108 self.dnf_with_repo('install -y %s' % url)
121 109
122 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install']) 110 @OETestDepends(['dnf.DnfRepoTest.test_dnf_install'])
123 @OETestID(1745)
124 def test_dnf_reinstall(self): 111 def test_dnf_reinstall(self):
125 self.dnf_with_repo('reinstall -y run-postinsts-dev') 112 self.dnf_with_repo('reinstall -y run-postinsts-dev')
126 113
127 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 114 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
128 @OETestID(1771)
129 def test_dnf_installroot(self): 115 def test_dnf_installroot(self):
130 rootpath = '/home/root/chroot/test' 116 rootpath = '/home/root/chroot/test'
131 #Copy necessary files to avoid errors with not yet installed tools on 117 #Copy necessary files to avoid errors with not yet installed tools on
@@ -151,7 +137,6 @@ class DnfRepoTest(DnfTest):
151 self.assertEqual(0, status, output) 137 self.assertEqual(0, status, output)
152 138
153 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache']) 139 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
154 @OETestID(1772)
155 def test_dnf_exclude(self): 140 def test_dnf_exclude(self):
156 excludepkg = 'curl-dev' 141 excludepkg = 'curl-dev'
157 self.dnf_with_repo('install -y curl*') 142 self.dnf_with_repo('install -y curl*')