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>
This commit is contained in:
parent
a32d16cb29
commit
81c378287b
|
@ -1,5 +1,5 @@
|
|||
import unittest
|
||||
import oe.utils
|
||||
from oe.utils import packages_filter_out_system
|
||||
|
||||
class TestPackagesFilterOutSystem(unittest.TestCase):
|
||||
def test_filter(self):
|
||||
|
@ -15,19 +15,19 @@ class TestPackagesFilterOutSystem(unittest.TestCase):
|
|||
d.setVar("PN", "foo")
|
||||
|
||||
d.setVar("PACKAGES", "foo foo-doc foo-dev")
|
||||
pkgs = oe.utils.packages_filter_out_system(d)
|
||||
pkgs = packages_filter_out_system(d)
|
||||
self.assertEqual(pkgs, [])
|
||||
|
||||
d.setVar("PACKAGES", "foo foo-doc foo-data foo-dev")
|
||||
pkgs = oe.utils.packages_filter_out_system(d)
|
||||
pkgs = packages_filter_out_system(d)
|
||||
self.assertEqual(pkgs, ["foo-data"])
|
||||
|
||||
d.setVar("PACKAGES", "foo foo-locale-en-gb")
|
||||
pkgs = oe.utils.packages_filter_out_system(d)
|
||||
pkgs = packages_filter_out_system(d)
|
||||
self.assertEqual(pkgs, [])
|
||||
|
||||
d.setVar("PACKAGES", "foo foo-data foo-locale-en-gb")
|
||||
pkgs = oe.utils.packages_filter_out_system(d)
|
||||
pkgs = packages_filter_out_system(d)
|
||||
self.assertEqual(pkgs, ["foo-data"])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue