Merge pull request #452 from smharper/cleanup_sourcesep

Make test cleanup source file
This commit is contained in:
Paul Romano 2015-09-15 09:22:59 +07:00
commit fd94158f77
11 changed files with 38 additions and 0 deletions

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,8 @@
#!/usr/bin/env python
import glob
import hashlib
import os
import sys
sys.path.insert(0, '..')

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *

View file

@ -1,6 +1,9 @@
#!/usr/bin/env python
import glob
import os
import sys
sys.path.insert(0, '..')
from testing_harness import *
@ -15,6 +18,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.*')

View file

@ -1,5 +1,7 @@
#!/usr/bin/env python
import glob
import os
import shutil
import sys