mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Make test cleanup source file
This commit is contained in:
parent
f8bfa401cb
commit
b9379e3c86
1 changed files with 7 additions and 0 deletions
|
|
@ -15,6 +15,13 @@ class SourcepointTestHarness(TestHarness):
|
|||
assert source[0].endswith('h5'), \
|
||||
'Source file is not a HDF5 file.'
|
||||
|
||||
def _cleanup(self):
|
||||
TestHarness._cleanup(self)
|
||||
output = glob.glob(os.path.join(os.getcwd(), 'source.*'))
|
||||
for f in output:
|
||||
if os.path.exists(f):
|
||||
os.remove(f)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
harness = SourcepointTestHarness('statepoint.10.*')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue