From 57d561e45d58ac58c69c86ed6df709a196aee2ca Mon Sep 17 00:00:00 2001 From: Sebastien Valat Date: Fri, 9 Oct 2026 09:45:00 +0200 Subject: [PATCH 1/2] tests: transmit the ini file used to the testidefix.py scripts in the test suite via option -ini. --- pytools/idfx_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytools/idfx_test.py b/pytools/idfx_test.py index cf16deae..beb3ed80 100644 --- a/pytools/idfx_test.py +++ b/pytools/idfx_test.py @@ -554,6 +554,9 @@ def standardTest(self): comm = [sys.executable, "testidefix.py"] if self.noplot: comm.append("-noplot") + if self.inifile: + comm.append("-ini") + comm.append(self.inifile) print(bcolors.OKCYAN + "Running standard test...") try: From fe880ef4bcc671bf8f92d919eb6f3ed2c557e2e1 Mon Sep 17 00:00:00 2001 From: Sebastien Valat Date: Sun, 11 Oct 2026 00:26:09 +0200 Subject: [PATCH 2/2] tests: fix parse_args() => parse_known_args() to ignore the new -init option if not used. --- test/SelfGravity/RandomSphere/python/testidefix.py | 2 +- test/SelfGravity/RandomSphereCartesian/python/testidefix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/SelfGravity/RandomSphere/python/testidefix.py b/test/SelfGravity/RandomSphere/python/testidefix.py index cff04f92..bc53c008 100755 --- a/test/SelfGravity/RandomSphere/python/testidefix.py +++ b/test/SelfGravity/RandomSphere/python/testidefix.py @@ -37,7 +37,7 @@ "-noplot", default=False, help="disable plotting", action="store_true" ) -args = parser.parse_args() +args, unkown_args = parser.parse_known_args() # Read vtk V = readVTK("../data.0000.vtk") diff --git a/test/SelfGravity/RandomSphereCartesian/python/testidefix.py b/test/SelfGravity/RandomSphereCartesian/python/testidefix.py index 37f5d0cd..61290030 100755 --- a/test/SelfGravity/RandomSphereCartesian/python/testidefix.py +++ b/test/SelfGravity/RandomSphereCartesian/python/testidefix.py @@ -61,7 +61,7 @@ def getPsiTheoretical(x, y, z, rho): "-noplot", default=False, help="disable plotting", action="store_true" ) -args = parser.parse_args() +args, unknown = parser.parse_known_args() # Read vtk V = readVTK("../data.0000.vtk")