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: 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")