]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: add scripts/lib and bitbake/lib to path
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 27 Jul 2015 13:03:56 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 22:28:20 +0000 (23:28 +0100)
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>
scripts/oe-selftest

index 60f9bb88f5194cefaea434a605a78e0fcd5fbf05..91e2dd28242f81492c27a41e2c6fe004213c644d 100755 (executable)
@@ -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