summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-09-25 11:15:52 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-26 15:14:33 +0100
commit376ed63eb9dd43bdd5a6b562a811b518b0ddf101 (patch)
treedfdc9d833feab5af78502f499b3e6cd3a87a1c34 /bitbake
parent22cbd08cb1b8fd61d296d1c136e433d26d73dfd5 (diff)
downloadpoky-376ed63eb9dd43bdd5a6b562a811b518b0ddf101.tar.gz
bitbake: lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) path
The test case needs to access test case files. Different versions of python may return absolute or relative locations in __file__. Use the same approach as other test cases in determining the location of the test files. (Bitbake rev: 80fe44889a858bddaca230c2d49ccabfcbc236a3) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/layerindexlib/tests/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/layerindexlib/tests/cooker.py b/bitbake/lib/layerindexlib/tests/cooker.py
index 9ce6e8c3ae..fdbf091103 100644
--- a/bitbake/lib/layerindexlib/tests/cooker.py
+++ b/bitbake/lib/layerindexlib/tests/cooker.py
@@ -32,7 +32,7 @@ class LayerIndexCookerTest(LayersTest):
32 # configure the test data. But we can emulate the basics of the layer.conf 32 # configure the test data. But we can emulate the basics of the layer.conf
33 # files, so that is what we will do. 33 # files, so that is what we will do.
34 34
35 new_topdir = os.path.join(os.path.dirname(__file__), "testdata") 35 new_topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "testdata")
36 new_bbpath = os.path.join(new_topdir, "build") 36 new_bbpath = os.path.join(new_topdir, "build")
37 37
38 self.d.setVar('TOPDIR', new_topdir) 38 self.d.setVar('TOPDIR', new_topdir)