aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-01-05 13:03:28 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-16 18:01:53 +0000
commit785f0343d04c1684363b5289a3012cf7e1caa95f (patch)
treebfbe273171fa1a9d1dd10aeb0d39cf92d83fb3bb
parentba4346069ab87f1cf942d1928f911eca6a9d65cd (diff)
downloadopenembedded-core-contrib-785f0343d04c1684363b5289a3012cf7e1caa95f.tar.gz
selftest/eSDK.py: fix sstate dir not found error
Fix the error below when SSTATE_DIR is not "${BUILDDIR}/sstate-cache". FileNotFoundError: [Errno 2] No such file or directory: '/xxx/../sstate-cache' Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/lib/oeqa/selftest/eSDK.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/eSDK.py b/meta/lib/oeqa/selftest/eSDK.py
index 9d5c680948..b43a452ac1 100644
--- a/meta/lib/oeqa/selftest/eSDK.py
+++ b/meta/lib/oeqa/selftest/eSDK.py
@@ -55,7 +55,7 @@ class oeSDKExtSelfTest(oeSelfTest):
@classmethod
def setUpClass(cls):
# Start to serve sstate dir
- sstate_dir = os.path.join(os.environ['BUILDDIR'], 'sstate-cache')
+ sstate_dir = get_bb_var('SSTATE_DIR')
cls.http_service = HTTPService(sstate_dir)
cls.http_service.start()