[oe-commits] Paul Eggleton : oe-selftest: add scripts/lib and bitbake/lib to path

git at git.openembedded.org git at git.openembedded.org
Mon Jul 27 13:07:39 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 2971f1c1748db1f6fa2e25146e2618b0388bb705
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2971f1c1748db1f6fa2e25146e2618b0388bb705

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Mon Jul 27 14:03:56 2015 +0100

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/oe-selftest | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 60f9bb8..91e2dd2 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



More information about the Openembedded-commits mailing list