diff options
Diffstat (limited to 'meta/lib/oe/tests/test_utils.py')
-rw-r--r-- | meta/lib/oe/tests/test_utils.py | 10 |
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 @@ | |||
1 | import unittest | 1 | import unittest |
2 | import oe.utils | 2 | from oe.utils import packages_filter_out_system |
3 | 3 | ||
4 | class TestPackagesFilterOutSystem(unittest.TestCase): | 4 | class 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 | ||