mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
particle restart test uses -s option, return codes not equal to 0
This commit is contained in:
parent
86594ee03a
commit
8a83d1a4d4
1 changed files with 4 additions and 3 deletions
|
|
@ -13,13 +13,14 @@ def test_run():
|
|||
proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE)
|
||||
returncode = proc.wait()
|
||||
print(proc.communicate()[0])
|
||||
assert returncode == 0
|
||||
assert returncode != 0
|
||||
|
||||
def test_run_restart():
|
||||
proc = Popen([pwd + '/../../src/openmc'], stderr=STDOUT, stdout=PIPE)
|
||||
proc = Popen([pwd + '/../../src/openmc -s particle_0.binary'],
|
||||
stderr=STDOUT, stdout=PIPE)
|
||||
returncode = proc.wait()
|
||||
print(proc.communicate()[0])
|
||||
assert returncode == 0
|
||||
assert returncode != 0
|
||||
|
||||
def test_created_restart():
|
||||
assert os.path.exists(pwd + '/particle_0.binary')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue