@@ -123,6 +123,7 @@ def run(self, config: dict) -> None:
123123 standardTest = config .get ("standardTest" , True )
124124 nonRegressionTest = config .get ("nonRegressionTest" , True )
125125 nonRegressionTestIni = config .get ("nonRegressionTestIni" , None )
126+ check_file_produced = config .get ("check_file_produced" , [])
126127 problemDir = os .path .dirname (testfile )
127128
128129 # cleanup some keyword not handled at the
@@ -148,6 +149,11 @@ def run(self, config: dict) -> None:
148149 with moveInDir (problemDir ):
149150 self ._runNonRegression (dumpname , config ['ini' ], config , tolerance = tolerance , definitionFile = definitionFile , standardTest = standardTest , nonReg = nonRegressionTest , nonRegIni = nonRegressionTestIni )
150151
152+ # check produced
153+ for file in check_file_produced :
154+ if not os .path .exists (file ):
155+ raise Exception (f"Don't find expected file to be produced by the run : { file } !" )
156+
151157 def _runNonRegression (self , dumpname , ini , config_override , tolerance = 0 , definitionFile = "" , nonReg = True , nonRegIni = None , standardTest = True , first_run_ini = None ,first_run_dumpname = None ,configure_and_compile = True ):
152158 if 'multirun' in config_override :
153159 self ._runNonRegMultirun (dumpname , ini , config_override , tolerance = tolerance , nonReg = nonReg , nonRegIni = nonRegIni , standardTest = standardTest , configure_and_compile = configure_and_compile , definitionFile = definitionFile , first_run_ini = first_run_ini , first_run_dumpname = first_run_dumpname )
0 commit comments