diff options
author | Colin Walters <walters@verbum.org> | 2010-11-16 09:46:00 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-11-16 09:46:00 -0500 |
commit | e4b6098e55307f602c179f37d59fbc6d0d965267 (patch) | |
tree | e118faf6eeb94068ba8f8cb558f081a344512ebc /tests/warn | |
parent | e59214ec184423e0a468e7b01be4a38acacf2b31 (diff) | |
download | gobject-introspection-e4b6098e55307f602c179f37d59fbc6d0d965267.tar.gz |
Fix tests to look in correct directory for typelibs
With nonrecursive they're in $(top_builddir) now
Diffstat (limited to 'tests/warn')
-rw-r--r-- | tests/warn/warningtester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py index f8f55655..bd1a4ad3 100644 --- a/tests/warn/warningtester.py +++ b/tests/warn/warningtester.py @@ -20,8 +20,8 @@ from giscanner.scannermain import process_packages currentdir = os.path.dirname(os.path.abspath(sys.argv[0])) current_name = os.path.basename(currentdir) path = os.path.abspath(os.path.join(currentdir, '..', '')) +top_srcdir = os.environ['UNINSTALLED_INTROSPECTION_SRCDIR'] top_builddir = os.environ['TOP_BUILDDIR'] -girpath = os.path.join(top_builddir, 'gir') class Options: def __init__(self): @@ -76,7 +76,7 @@ def check(args): output=output) logger.enable_warnings(True) transformer = Transformer(namespace) - transformer.set_include_paths([girpath]) + transformer.set_include_paths([os.path.join(top_srcdir, 'gir'), top_builddir]) transformer.register_include(Include.from_string("GObject-2.0")) ss = SourceScanner() |