@@ -142,7 +142,7 @@ def run_test(self, running_with_tsan=False):
142142
143143 # Adjust the number of iterations in the config file
144144 if len (self .test_vals ) != 0 :
145- self .adjust_iter ()
145+ self .adjust_iter (running_with_tsan )
146146
147147 # Check for disabling the restart
148148 if self .no_restart :
@@ -291,7 +291,7 @@ def run_filediff(self, running_with_tsan=False):
291291 timed_out = False
292292
293293 # Adjust the number of iterations in the config file
294- self .adjust_iter ()
294+ self .adjust_iter (running_with_tsan )
295295
296296 self .adjust_test_data ()
297297
@@ -850,7 +850,12 @@ def run_def(self):
850850 os .chdir (workdir )
851851 return passed
852852
853- def adjust_iter (self ):
853+ def adjust_iter (self , running_with_tsan = False ):
854+
855+ if not running_with_tsan :
856+ new_iter = self .test_iter + 1
857+ else :
858+ new_iter = 2
854859
855860 # Read the cfg file
856861 workdir = os .getcwd ()
@@ -863,7 +868,7 @@ def adjust_iter(self):
863868 self .cfg_file = "%s.autotest" % self .cfg_file
864869 file_out = open (self .cfg_file ,'w' )
865870 file_out .write ('% This file automatically generated by the regression script\n ' )
866- file_out .write ('%% Number of iterations changed to %d\n ' % (self . test_iter + 1 ))
871+ file_out .write ('%% Number of iterations changed to %d\n ' % (new_iter ))
867872 if (self .multizone or self .new_output ) and self .unsteady :
868873 adjust_string = "TIME_ITER"
869874 elif self .multizone :
@@ -874,7 +879,7 @@ def adjust_iter(self):
874879 if not line .strip ().split ("=" )[0 ].strip () == adjust_string :
875880 file_out .write (line )
876881 else :
877- file_out .write (adjust_string + "=%d\n " % (self . test_iter + 1 ))
882+ file_out .write (adjust_string + "=%d\n " % (new_iter ))
878883 file_out .close ()
879884 os .chdir (workdir )
880885
0 commit comments