summaryrefslogtreecommitdiffstats
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:05:12 +0000
commit9a1e8b9cf5769a96ea4260c9d3eec9d12406875e (patch)
treef74bbbdf7c3ee81c22ec39175a859eafeaf66dc5
parent436df4de376c56685b7a982a0deaaeea236be86d (diff)
downloadpoky-9a1e8b9cf5769a96ea4260c9d3eec9d12406875e.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' (From OE-Core rev: 785f0343d04c1684363b5289a3012cf7e1caa95f) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
55 @classmethod 55 @classmethod
56 def setUpClass(cls): 56 def setUpClass(cls):
57 # Start to serve sstate dir 57 # Start to serve sstate dir
58 sstate_dir = os.path.join(os.environ['BUILDDIR'], 'sstate-cache') 58 sstate_dir = get_bb_var('SSTATE_DIR')
59 cls.http_service = HTTPService(sstate_dir) 59 cls.http_service = HTTPService(sstate_dir)
60 cls.http_service.start() 60 cls.http_service.start()
61 61