utest: add loxigen directory to front of sys.path
Python prepepnds apt-get installed packages even before PYTHONPATH. This caused
the parser unit tests to fail on machines with an older version of pyparsing
installed even though it's included in the repo.
diff --git a/Makefile b/Makefile
index 591aa79..133b6fb 100644
--- a/Makefile
+++ b/Makefile
@@ -87,9 +87,9 @@
@echo "INPUT_FILES=\"${INPUT_FILES}\""
check:
- PYTHONPATH=. ./utest/test_parser.py
- PYTHONPATH=. ./utest/test_frontend.py
- PYTHONPATH=. ./utest/test_test_data.py
+ ./utest/test_parser.py
+ ./utest/test_frontend.py
+ ./utest/test_test_data.py
check-py: python
PYTHONPATH=${LOXI_OUTPUT_DIR}/pyloxi:. python py_gen/tests/generic_util.py