Fixed most failing tests, ce_to_mg is next

This commit is contained in:
Adam Nelson 2016-09-05 21:18:17 -04:00
parent 1625927b44
commit 88abdfb5ce
4 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View file

@ -50,6 +50,7 @@ tests/ctestscript.run
# HDF5 files
*.h5
!tests/1d_mgxs.h5
# Build files
src/CMakeCache.txt

BIN
tests/1d_mgxs.h5 Normal file

Binary file not shown.

View file

@ -117,7 +117,7 @@ def cleanup(path):
for dirpath, dirnames, filenames in os.walk(path):
for fname in filenames:
for ext in ['.h5', '.ppm', '.voxel']:
if fname.endswith(ext):
if fname.endswith(ext) and fname != '1d_mgxs.h5':
os.remove(os.path.join(dirpath, fname))

View file

@ -83,7 +83,6 @@ class MGXSTestHarness(PyAPITestHarness):
returncode = openmc.run(openmc_exec=self._opts.exe)
def _cleanup(self):
return
super(MGXSTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'mgxs.h5')
if os.path.exists(f):