From 8d8bb1f06ce1bede4506c0cec3a35bfa6df3888b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 16 Jun 2013 16:10:38 -0400 Subject: [PATCH] Fix test_particle_restart. --- tests/test_particle_restart/geometry.xml | 13 +++++-------- tests/test_particle_restart/materials.xml | 2 +- tests/test_particle_restart/settings.xml | 2 +- .../test_particle_restart/test_particle_restart.py | 6 +++--- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/tests/test_particle_restart/geometry.xml b/tests/test_particle_restart/geometry.xml index 3dc9f24c1c..52fea4df64 100644 --- a/tests/test_particle_restart/geometry.xml +++ b/tests/test_particle_restart/geometry.xml @@ -1,12 +1,9 @@ - - - - - - - - + + + + + diff --git a/tests/test_particle_restart/materials.xml b/tests/test_particle_restart/materials.xml index 1f85510e0d..003e8ebc9a 100644 --- a/tests/test_particle_restart/materials.xml +++ b/tests/test_particle_restart/materials.xml @@ -2,7 +2,7 @@ - + diff --git a/tests/test_particle_restart/settings.xml b/tests/test_particle_restart/settings.xml index f278bb5b07..a6b5abbbae 100644 --- a/tests/test_particle_restart/settings.xml +++ b/tests/test_particle_restart/settings.xml @@ -9,7 +9,7 @@ - -20 -20 -5 20 20 5 + -10 -10 -5 10 10 5 diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index b1f9a01088..b3a8b3396c 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -15,16 +15,16 @@ def test_run(): assert stderr != '' def test_created_restart(): - assert os.path.exists(pwd + '/particle_0.binary') + assert os.path.exists(pwd + '/particle_10_638.binary') def test_run_restart(): - proc = Popen([pwd + '/../../src/openmc -s particle_0.binary'], + proc = Popen([pwd + '/../../src/openmc -s particle_10_638.binary'], stderr=PIPE, stdout=PIPE, shell=True) stdout, stderr = proc.communicate() assert stderr != '' def teardown(): - output = [pwd + '/particle_0.binary'] + output = [pwd + '/particle_10_638.binary'] for f in output: if os.path.exists(f): os.remove(f)