test_particle_restart now checks that restart run completes (no stderr).

This commit is contained in:
Paul Romano 2013-08-15 00:05:49 -05:00
parent 9004ad877c
commit a147274ffd

View file

@ -3,6 +3,7 @@
import os
from subprocess import Popen, STDOUT, PIPE
import filecmp
import glob
pwd = os.path.dirname(__file__)
@ -29,10 +30,10 @@ def test_run_restart():
proc = Popen([pwd + '/../../src/openmc -r particle_10_903.binary'],
stderr=PIPE, stdout=PIPE, shell=True)
stdout, stderr = proc.communicate()
assert stderr != ''
assert stderr == ''
def teardown():
output = [pwd + '/particle_10_903.binary', pwd + '/results_test.dat']
output = glob.glob(pwd + '/particle_*.binary') + [pwd + '/results_test.dat']
for f in output:
if os.path.exists(f):
os.remove(f)