summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/bbtests.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-03-20 12:15:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-21 09:42:36 +0000
commita8c98c399fbf6d04483488e8ead5062c99342365 (patch)
treebeb9bb32116f5291458b6dedb8a1a25144203b20 /meta/lib/oeqa/selftest/bbtests.py
parent4783ead254f135d7d4753f3b60a6e41249f3be8a (diff)
downloadpoky-a8c98c399fbf6d04483488e8ead5062c99342365.tar.gz
oe-selftest: use spaces to indent python code, not tabs
Indenting-only change. (From OE-Core rev: b3005576a9e0bcaa47c41f25451d1fe7ef30c7fe) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/bbtests.py')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py72
1 files changed, 36 insertions, 36 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index aeccbf55a6..b301d8f819 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -120,63 +120,63 @@ class BitbakeTests(oeSelfTest):
120 120
121 @testcase(1028) 121 @testcase(1028)
122 def test_environment(self): 122 def test_environment(self):
123 self.append_config("TEST_ENV=\"localconf\"") 123 self.append_config("TEST_ENV=\"localconf\"")
124 result = runCmd('bitbake -e | grep TEST_ENV=') 124 result = runCmd('bitbake -e | grep TEST_ENV=')
125 self.assertTrue('localconf' in result.output) 125 self.assertTrue('localconf' in result.output)
126 self.remove_config("TEST_ENV=\"localconf\"") 126 self.remove_config("TEST_ENV=\"localconf\"")
127 127
128 @testcase(1029) 128 @testcase(1029)
129 def test_dry_run(self): 129 def test_dry_run(self):
130 result = runCmd('bitbake -n m4-native') 130 result = runCmd('bitbake -n m4-native')
131 self.assertEqual(0, result.status) 131 self.assertEqual(0, result.status)
132 132
133 @testcase(1030) 133 @testcase(1030)
134 def test_just_parse(self): 134 def test_just_parse(self):
135 result = runCmd('bitbake -p') 135 result = runCmd('bitbake -p')
136 self.assertEqual(0, result.status) 136 self.assertEqual(0, result.status)
137 137
138 @testcase(1031) 138 @testcase(1031)
139 def test_version(self): 139 def test_version(self):
140 result = runCmd('bitbake -s | grep wget') 140 result = runCmd('bitbake -s | grep wget')
141 find = re.search("wget *:([0-9a-zA-Z\.\-]+)", result.output) 141 find = re.search("wget *:([0-9a-zA-Z\.\-]+)", result.output)
142 self.assertTrue(find) 142 self.assertTrue(find)
143 143
144 @testcase(1032) 144 @testcase(1032)
145 def test_prefile(self): 145 def test_prefile(self):
146 preconf = os.path.join(self.builddir, 'conf/prefile.conf') 146 preconf = os.path.join(self.builddir, 'conf/prefile.conf')
147 self.track_for_cleanup(preconf) 147 self.track_for_cleanup(preconf)
148 ftools.write_file(preconf ,"TEST_PREFILE=\"prefile\"") 148 ftools.write_file(preconf ,"TEST_PREFILE=\"prefile\"")
149 result = runCmd('bitbake -r conf/prefile.conf -e | grep TEST_PREFILE=') 149 result = runCmd('bitbake -r conf/prefile.conf -e | grep TEST_PREFILE=')
150 self.assertTrue('prefile' in result.output) 150 self.assertTrue('prefile' in result.output)
151 self.append_config("TEST_PREFILE=\"localconf\"") 151 self.append_config("TEST_PREFILE=\"localconf\"")
152 result = runCmd('bitbake -r conf/prefile.conf -e | grep TEST_PREFILE=') 152 result = runCmd('bitbake -r conf/prefile.conf -e | grep TEST_PREFILE=')
153 self.assertTrue('localconf' in result.output) 153 self.assertTrue('localconf' in result.output)
154 self.remove_config("TEST_PREFILE=\"localconf\"") 154 self.remove_config("TEST_PREFILE=\"localconf\"")
155 155
156 @testcase(1033) 156 @testcase(1033)
157 def test_postfile(self): 157 def test_postfile(self):
158 postconf = os.path.join(self.builddir, 'conf/postfile.conf') 158 postconf = os.path.join(self.builddir, 'conf/postfile.conf')
159 self.track_for_cleanup(postconf) 159 self.track_for_cleanup(postconf)
160 ftools.write_file(postconf , "TEST_POSTFILE=\"postfile\"") 160 ftools.write_file(postconf , "TEST_POSTFILE=\"postfile\"")
161 self.append_config("TEST_POSTFILE=\"localconf\"") 161 self.append_config("TEST_POSTFILE=\"localconf\"")
162 result = runCmd('bitbake -R conf/postfile.conf -e | grep TEST_POSTFILE=') 162 result = runCmd('bitbake -R conf/postfile.conf -e | grep TEST_POSTFILE=')
163 self.assertTrue('postfile' in result.output) 163 self.assertTrue('postfile' in result.output)
164 self.remove_config("TEST_POSTFILE=\"localconf\"") 164 self.remove_config("TEST_POSTFILE=\"localconf\"")
165 165
166 @testcase(1034) 166 @testcase(1034)
167 def test_checkuri(self): 167 def test_checkuri(self):
168 result = runCmd('bitbake -c checkuri m4') 168 result = runCmd('bitbake -c checkuri m4')
169 self.assertEqual(0, result.status) 169 self.assertEqual(0, result.status)
170 170
171 @testcase(1035) 171 @testcase(1035)
172 def test_continue(self): 172 def test_continue(self):
173 self.write_recipeinc('man',"\ndo_fail_task () {\nexit 1 \n}\n\naddtask do_fail_task before do_fetch\n" ) 173 self.write_recipeinc('man',"\ndo_fail_task () {\nexit 1 \n}\n\naddtask do_fail_task before do_fetch\n" )
174 runCmd('bitbake -c cleanall man xcursor-transparent-theme') 174 runCmd('bitbake -c cleanall man xcursor-transparent-theme')
175 result = runCmd('bitbake man xcursor-transparent-theme -k', ignore_status=True) 175 result = runCmd('bitbake man xcursor-transparent-theme -k', ignore_status=True)
176 errorpos = result.output.find('ERROR: Function failed: do_fail_task') 176 errorpos = result.output.find('ERROR: Function failed: do_fail_task')
177 manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output) 177 manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output)
178 continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1)) 178 continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1))
179 self.assertLess(errorpos,continuepos) 179 self.assertLess(errorpos,continuepos)
180 180
181 @testcase(1119) 181 @testcase(1119)
182 def test_non_gplv3(self): 182 def test_non_gplv3(self):