summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-07-27 14:03:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-27 23:28:20 +0100
commit5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9 (patch)
tree19085d8736426e55595797fe1f3adee84894d0bf /scripts
parent95330664826e80c56360645ea90b59d265c2c50e (diff)
downloadopenembedded-core-5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9.tar.gz
openembedded-core-5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9.tar.bz2
openembedded-core-5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9.zip
oe-selftest: add scripts/lib and bitbake/lib to path
In particular, this allows us to use code from bitbake's bb module (such as tinfoil). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-selftest5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 60f9bb88f5..91e2dd2824 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -31,7 +31,10 @@ import unittest
import logging
import argparse
-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'meta/lib')))
+sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib')
+import scriptpath
+scriptpath.add_bitbake_lib_path()
+scriptpath.add_oe_lib_path()
import oeqa.selftest
import oeqa.utils.ftools as ftools