[PATCH 2/2] Add typelib and library paths to the test environment.

David Shea dshea at redhat.com
Mon Mar 3 17:07:44 UTC 2014


Now that pylint examines typelibs for gi types, this has tests use the
widget typelib and library compiled in the working copy instead of the
versions installed on the system.
---
 tests/testenv.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/testenv.sh b/tests/testenv.sh
index 2bdab60..9493451 100644
--- a/tests/testenv.sh
+++ b/tests/testenv.sh
@@ -14,9 +14,18 @@ else
     PYTHONPATH="${PYTHONPATH}:${top_builddir}/pyanaconda/isys/.libs:${top_srcdir}/pyanaconda:${top_srcdir}:${top_srcdir}/tests/lib"
 fi
 
+if [ -z "$LD_LIBRARY_PATH" ]; then
+    LD_LIBRARY_PATH="${top_builddir}/widgets/src/.libs"
+else
+    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${top_builddir}/widgets/src/.libs"
+fi
+
 ANACONDA_INSTALL_CLASSES="${top_builddir}/pyanaconda/installclasses"
+GI_TYPELIB_PATH="${top_builddir}/widgets/src"
 
 export ANACONDA_INSTALL_CLASSES
+export GI_TYPELIB_PATH
+export LD_LIBRARY_PATH
 export PYTHONPATH
 export top_srcdir
 export top_builddir
-- 
1.9.0



More information about the anaconda-patches mailing list