summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-05-23 12:35:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 16:48:25 +0100
commit81c378287b5430575513df43548fe3ced01ffa45 (patch)
tree0ed27c0ffa973b94c781342564522ad1e59fc41f /meta/lib/oe
parenta32d16cb2971e3096ecb2333e672ad198c3cfe46 (diff)
downloadpoky-81c378287b5430575513df43548fe3ced01ffa45.tar.gz
test_utils: import functions directly for conciseness
(From OE-Core rev: 2a147008cf81838cfc569640a30df0c1bfd74e08) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/tests/test_utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oe/tests/test_utils.py b/meta/lib/oe/tests/test_utils.py
index 5e1ea0e6ea..5d9ac52e7d 100644
--- a/meta/lib/oe/tests/test_utils.py
+++ b/meta/lib/oe/tests/test_utils.py
@@ -1,5 +1,5 @@
1import unittest 1import unittest
2import oe.utils 2from oe.utils import packages_filter_out_system
3 3
4class TestPackagesFilterOutSystem(unittest.TestCase): 4class TestPackagesFilterOutSystem(unittest.TestCase):
5 def test_filter(self): 5 def test_filter(self):
@@ -15,19 +15,19 @@ class TestPackagesFilterOutSystem(unittest.TestCase):
15 d.setVar("PN", "foo") 15 d.setVar("PN", "foo")
16 16
17 d.setVar("PACKAGES", "foo foo-doc foo-dev") 17 d.setVar("PACKAGES", "foo foo-doc foo-dev")
18 pkgs = oe.utils.packages_filter_out_system(d) 18 pkgs = packages_filter_out_system(d)
19 self.assertEqual(pkgs, []) 19 self.assertEqual(pkgs, [])
20 20
21 d.setVar("PACKAGES", "foo foo-doc foo-data foo-dev") 21 d.setVar("PACKAGES", "foo foo-doc foo-data foo-dev")
22 pkgs = oe.utils.packages_filter_out_system(d) 22 pkgs = packages_filter_out_system(d)
23 self.assertEqual(pkgs, ["foo-data"]) 23 self.assertEqual(pkgs, ["foo-data"])
24 24
25 d.setVar("PACKAGES", "foo foo-locale-en-gb") 25 d.setVar("PACKAGES", "foo foo-locale-en-gb")
26 pkgs = oe.utils.packages_filter_out_system(d) 26 pkgs = packages_filter_out_system(d)
27 self.assertEqual(pkgs, []) 27 self.assertEqual(pkgs, [])
28 28
29 d.setVar("PACKAGES", "foo foo-data foo-locale-en-gb") 29 d.setVar("PACKAGES", "foo foo-data foo-locale-en-gb")
30 pkgs = oe.utils.packages_filter_out_system(d) 30 pkgs = packages_filter_out_system(d)
31 self.assertEqual(pkgs, ["foo-data"]) 31 self.assertEqual(pkgs, ["foo-data"])
32 32
33 33