From: Paul Eggleton Date: Mon, 27 Jul 2015 13:03:56 +0000 (+0100) Subject: oe-selftest: add scripts/lib and bitbake/lib to path X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 60f9bb88f51..91e2dd28242 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