summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/runqueue.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/runqueue.py')
-rw-r--r--bitbake/lib/bb/tests/runqueue.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/runqueue.py b/bitbake/lib/bb/tests/runqueue.py
index 4ba12a0772..091b5e41e0 100644
--- a/bitbake/lib/bb/tests/runqueue.py
+++ b/bitbake/lib/bb/tests/runqueue.py
@@ -232,6 +232,21 @@ class RunQueueTests(unittest.TestCase):
232 expected.remove(x) 232 expected.remove(x)
233 self.assertEqual(set(tasks), set(expected)) 233 self.assertEqual(set(tasks), set(expected))
234 234
235 def test_multiconfig_bbmask(self):
236 # This test validates that multiconfigs can independently mask off
237 # recipes they do not want with BBMASK. It works by having recipes
238 # that will fail to parse for mc1 and mc2, then making each multiconfig
239 # build the one that does parse. This ensures that the recipes are in
240 # each multiconfigs BBFILES, but each is masking only the one that
241 # doesn't parse
242 with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
243 extraenv = {
244 "BBMULTICONFIG" : "mc1 mc2",
245 "BB_SIGNATURE_HANDLER" : "basic",
246 "EXTRA_BBFILES": "${COREBASE}/recipes/fails-mc/*.bb",
247 }
248 cmd = ["bitbake", "mc:mc1:fails-mc2", "mc:mc2:fails-mc1"]
249 self.run_bitbakecmd(cmd, tempdir, "", extraenv=extraenv)
235 250
236 @unittest.skipIf(sys.version_info < (3, 5, 0), 'Python 3.5 or later required') 251 @unittest.skipIf(sys.version_info < (3, 5, 0), 'Python 3.5 or later required')
237 def test_hashserv_single(self): 252 def test_hashserv_single(self):