diff --git a/tests/update_results.py b/tests/update_results.py index c9c0be85dc..64d72d3f27 100755 --- a/tests/update_results.py +++ b/tests/update_results.py @@ -56,6 +56,20 @@ for adir in sorted(folders): for i in range(35 - sz): print('.', end="") + if adir == 'test_source_file': + # Handle source file test separately since it requires running OpenMC + # twice + if os.path.exists('results_error.dat'): + os.remove('results_error.dat') + proc = Popen(['python', 'test_source_file.py', '--exe', openmc_exe], + stderr=STDOUT, stdout=PIPE) + returncode = proc.wait() + if os.path.exists('results_error.dat'): + os.rename('results_error.dat', 'results_true.dat') + print(BOLD + OKGREEN + "[OK]" + ENDC) + os.chdir('..') + continue + # Run openmc proc = Popen([openmc_exe], stderr=STDOUT, stdout=PIPE) returncode = proc.wait()