Skip to content
Snippets Groups Projects
Commit ea7d5723 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #9841: Fix pipeline_test if there are modules in the pythonpath which...

Task #9841: Fix pipeline_test if there are modules in the pythonpath which prepend the pythonpath again through their site.py
parent 379804b9
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#run the actual python script performing the tests #run the actual python script performing the tests
# Run all test collected in the current directory (including possible self tests!) # Run all test collected in the current directory (including possible self tests!)
PYTHONPATH=${srcdir}/test_framework/fixture:${PYTHONPATH} # The support tests need a lot of open files
export PYTHONPATH ulimit -n 2048
python ${srcdir}/test_framework/unittest_runner.py -x results.xml -p ${srcdir} python ${srcdir}/test_framework/unittest_runner.py -x results.xml -p ${srcdir}
......
...@@ -6,6 +6,11 @@ import inspect ...@@ -6,6 +6,11 @@ import inspect
import sys import sys
import re import re
# We need the fixture to be in the front of the python path.
# Some packages (f.e. casacore) have a site.py, which get run at python start, and can modify
# the python path. We thus can only prepend the fixture after python has started.
sys.path=["%s/fixture" % os.path.dirname(__file__)] + sys.path
class Discover(): class Discover():
""" """
Discover class collects all unit test case in <path> and recursive directories Discover class collects all unit test case in <path> and recursive directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment