]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/eSDK.py: fix sstate dir not found error
authorChen Qi <Qi.Chen@windriver.com>
Thu, 5 Jan 2017 05:03:28 +0000 (13:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Jan 2017 18:01:53 +0000 (18:01 +0000)
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>
meta/lib/oeqa/selftest/eSDK.py

index 9d5c680948ac62f6c7242ab8e86f48656b91f252..b43a452ac1c2731dd29dccea6018e961e093de52 100644 (file)
@@ -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()