[oe-commits] [bitbake] 01/04: lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) path

git at git.openembedded.org git at git.openembedded.org
Tue Sep 25 22:23:55 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 80fe44889a858bddaca230c2d49ccabfcbc236a3
Author: Mark Hatle <mark.hatle at windriver.com>
AuthorDate: Tue Sep 25 11:15:52 2018 -0400

    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 at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/layerindexlib/tests/cooker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/layerindexlib/tests/cooker.py b/lib/layerindexlib/tests/cooker.py
index 9ce6e8c..fdbf091 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list