diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2017-01-05 13:03:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-16 18:01:53 +0000 |
commit | 785f0343d04c1684363b5289a3012cf7e1caa95f (patch) | |
tree | bfbe273171fa1a9d1dd10aeb0d39cf92d83fb3bb | |
parent | ba4346069ab87f1cf942d1928f911eca6a9d65cd (diff) | |
download | openembedded-core-785f0343d04c1684363b5289a3012cf7e1caa95f.tar.gz openembedded-core-785f0343d04c1684363b5289a3012cf7e1caa95f.tar.bz2 openembedded-core-785f0343d04c1684363b5289a3012cf7e1caa95f.zip |
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'
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/lib/oeqa/selftest/eSDK.py | 2 |
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): @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() |