diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index 5c82f18249..a69065f1be 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -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')