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 <[email protected]> --- meta/lib/oeqa/selftest/eSDK.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/eSDK.py b/meta/lib/oeqa/selftest/eSDK.py index 9d5c680..b43a452 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() -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
