mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
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)
(From OE-Core rev: 9d04fe3a0ce7eb418cd48438e1699825904e2dfb)
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user