diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2018-09-25 11:15:52 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-25 23:22:54 +0100 |
commit | 80fe44889a858bddaca230c2d49ccabfcbc236a3 (patch) | |
tree | 159d20d694b9f97c1d2e7b2bd0ef5fdae9c7745e /lib/layerindexlib | |
parent | 0cb64d0f85b41b2fa764baf6ff7ea1b13f95004e (diff) | |
download | bitbake-contrib-80fe44889a858bddaca230c2d49ccabfcbc236a3.tar.gz |
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.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/layerindexlib')
-rw-r--r-- | lib/layerindexlib/tests/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/layerindexlib/tests/cooker.py b/lib/layerindexlib/tests/cooker.py index 9ce6e8c3a..fdbf09110 100644 --- a/lib/layerindexlib/tests/cooker.py +++ b/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) |