diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2018-09-25 10:59:30 -0400 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2018-09-25 11:14:04 -0400 |
commit | e0a89109b1604670894470c91a54e276f11d7541 (patch) | |
tree | f8561c9108f4ee3558200da39a9c9f48010457d1 /lib/layerindexlib | |
parent | f91e9de40cf9bb0c1108abd74df7c0ef422fa0fe (diff) | |
download | bitbake-contrib-e0a89109b1604670894470c91a54e276f11d7541.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>
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) |