From 186af52d90dcf7f5b58e7a4d43eb43f8418d6eee Mon Sep 17 00:00:00 2001 From: Sebastien Valat Date: Mon, 5 Oct 2026 11:46:38 +0200 Subject: [PATCH] tests: fix test suite runner not to require anymore the user to set PYTHONPATH before launching it. --- test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.py b/test.py index 2e00981b..7d92aad0 100755 --- a/test.py +++ b/test.py @@ -27,6 +27,12 @@ sys.path.append(source_dir) from pytools.idfx_test_run import IdexPytestRunner +# export it for sub-commands accessing ./pytools module +if "PYTHONPATH" in os.environ: + os.environ["PYTHONPATH"] = source_dir + ":" + os.environ["PYTHONPATH"] +else: + os.environ["PYTHONPATH"] = source_dir + # should be global so it remember state (last build) and avoids # to build for each run if we just changed the ini file and run options. gblIdefixPytestRunner = IdexPytestRunner(__file__)