From 8a83d1a4d426a82505fc93ad032e2a87fbba2117 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Tue, 9 Apr 2013 05:26:14 -0700 Subject: [PATCH] particle restart test uses -s option, return codes not equal to 0 --- tests/test_particle_restart/test_particle_restart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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')