mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
changed assert on particle restart
This commit is contained in:
parent
3c8c2a421e
commit
63cafa1e68
1 changed files with 4 additions and 3 deletions
|
|
@ -39,9 +39,10 @@ def test_results():
|
|||
|
||||
def test_run_restart():
|
||||
particle = glob.glob(cwd + '/particle_12_192.*')
|
||||
proc = Popen([opts.exe, '-r', particle[0], cwd], stderr=PIPE, stdout=PIPE)
|
||||
stdout, stderr = proc.communicate()
|
||||
assert stderr == '', 'Particle restart not successful.'
|
||||
proc = Popen([opts.exe, '-r', particle[0], cwd], stderr=STDOUT, stdout=PIPE)
|
||||
print(proc.communicate()[0])
|
||||
returncode = proc.returncode
|
||||
assert returncode == 0, 'Particle restart not successful.'
|
||||
|
||||
def teardown():
|
||||
output = glob.glob(cwd + '/statepoint.*') + \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue