From a147274ffdc80a11ef2c77f0bf2e7ee071d91717 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 15 Aug 2013 00:05:49 -0500 Subject: [PATCH] test_particle_restart now checks that restart run completes (no stderr). --- tests/test_particle_restart/test_particle_restart.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index 32adebe86a..17e4690f46 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -3,6 +3,7 @@ import os from subprocess import Popen, STDOUT, PIPE import filecmp +import glob pwd = os.path.dirname(__file__) @@ -29,10 +30,10 @@ def test_run_restart(): proc = Popen([pwd + '/../../src/openmc -r particle_10_903.binary'], stderr=PIPE, stdout=PIPE, shell=True) stdout, stderr = proc.communicate() - assert stderr != '' + assert stderr == '' def teardown(): - output = [pwd + '/particle_10_903.binary', pwd + '/results_test.dat'] + output = glob.glob(pwd + '/particle_*.binary') + [pwd + '/results_test.dat'] for f in output: if os.path.exists(f): os.remove(f)