Commit b0928c12 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

also put INSERT_PRODUCTS_PATH in erp5testrunner's sys.path

Tests directory of inserted paths also needs to be in sys.path so that tests
can import other tests.
parent 8c36253d
......@@ -388,6 +388,9 @@ initialization =
sys.path[:0] = sum((
glob.glob(os.path.join(x, 'Products', '*', 'tests'))
for x in extra_path_list), [])
sys.path[:0] = sum((
glob.glob(os.path.join(x, 'Products', '*', 'tests'))
for x in os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep)), [])
[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment