mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
test_particle_restart now checks that restart run completes (no stderr).
This commit is contained in:
parent
9004ad877c
commit
a147274ffd
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue