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>
This commit is contained in:
parent
436df4de37
commit
9a1e8b9cf5
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue