Skip to content

tests: fix test suite runner not to require anymore the user to set PYTHONPATH before launching it. - #415

Merged
glesur merged 1 commit into
idefix-code:developfrom
svalat:fix/test-suite-runner-PYTHONPATH
Oct 6, 2026
Merged

glesur merged 1 commit into
idefix-code:developfrom
svalat:fix/test-suite-runner-PYTHONPATH

Conversation

@svalat

@svalat svalat commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

When launching the test suite, there are som internal calls to pytools idefix module in sub commands.

Which leads to :

---------------------------------------------------- Captured stderr call -----------------------------------------------
Traceback (most recent call last):
  File "/....../idefix/test/Dust/DustyShock/python/testidefix.py", line 19, in <module>
    from pytools.vtk_io import readVTK
ModuleNotFoundError: No module named 'pytools.vtk_io'

It require set PYTHONPATH environment variable in front of ./tests.py to find the pytools module.

This patch, set the PYTHONPATH automatically at the start of ./tests.py so the user has nothing to do.

@glesur
glesur merged commit 959f9d7 into idefix-code:develop Oct 6, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants