]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/bblayers: Place the test layer directory in builddir
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Jul 2018 13:39:40 +0000 (13:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Jul 2018 15:48:13 +0000 (16:48 +0100)
Placing the layer in meta means the directory is in an unclean state
which may influence other tests. Use our build directory instead
since we 'own' that. This helps keep oe-selftest parallelisation
clean.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/bblayers.py

index 3448ae1999bf10a2d0436bf0f220af4be7fdb7b5..447c54b7e60f4e4bb075e98690986ef5a7bfff98 100644 (file)
@@ -88,7 +88,7 @@ class BitbakeLayers(OESelftestTestCase):
     def test_bitbakelayers_createlayer(self):
         priority = 10
         layername = 'test-bitbakelayer-layercreate'
-        layerpath = os.path.join(get_bb_var('COREBASE'), layername)
+        layerpath = os.path.join(self.builddir, layername)
         self.assertFalse(os.path.exists(layerpath), '%s should not exist at this point in time' % layerpath)
         result = runCmd('bitbake-layers create-layer --priority=%d %s' % (priority, layerpath))
         self.track_for_cleanup(layerpath)