* [PATCH 2/3 v2] lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) path
@ 2018-09-25 15:15 Mark Hatle
0 siblings, 0 replies; only message in thread
From: Mark Hatle @ 2018-09-25 15:15 UTC (permalink / raw)
To: bitbake-devel
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>
---
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)
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-25 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25 15:15 [PATCH 2/3 v2] lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) path Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox