tests: Prefer development Python files over installed ones.
authorEthan Jackson <ethan@nicira.com>
Fri, 2 Mar 2012 00:21:55 +0000 (16:21 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 2 Mar 2012 00:39:19 +0000 (16:39 -0800)
A developer may have Open vSwitch installed, in which case many of
the Python files which are tested will be in both the development
tree and the system Python library.  When running unit tests, we
want to test the development tree, so it's better to prefer
importing those files.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
tests/atlocal.in

index 7f09143f4711d206ed046981372ad986d12679bd..aa86251cf8fa1409bad05f492f3b1e11a4fb634c 100644 (file)
@@ -4,7 +4,7 @@ HAVE_PYTHON='@HAVE_PYTHON@'
 PERL='@PERL@'
 PYTHON='@PYTHON@'
 
-PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python:$abs_top_builddir/tests
+PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
 export PYTHONPATH
 
 PYTHONIOENCODING=utf_8