From 376ed63eb9dd43bdd5a6b562a811b518b0ddf101 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Tue, 25 Sep 2018 11:15:52 -0400 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/layerindexlib/tests/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): # configure the test data. But we can emulate the basics of the layer.conf # files, so that is what we will do. - new_topdir = os.path.join(os.path.dirname(__file__), "testdata") + new_topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "testdata") new_bbpath = os.path.join(new_topdir, "build") self.d.setVar('TOPDIR', new_topdir) -- cgit v1.2.3-54-g00ecf