From b7eb82b6be65df8f4b37693414b76c82a3aec5d0 Mon Sep 17 00:00:00 2001 From: shriwise Date: Wed, 12 Sep 2018 09:21:29 -0500 Subject: [PATCH] Going back to default openmc run from the test_harness. Adjusting post-run tests (for now). --- tests/testing_harness.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/testing_harness.py b/tests/testing_harness.py index 67c3bef8c4..60c8e7c16e 100644 --- a/tests/testing_harness.py +++ b/tests/testing_harness.py @@ -316,5 +316,11 @@ class HashedPyAPITestHarness(PyAPITestHarness): class CADTestHarness(TestHarness): - def _run_openmc(self): - openmc.run(openmc_exec=config['exe'], threads = 1) + def execute_test(self): + """Run OpenMC with the appropriate arguments and check the outputs.""" + try: + self._run_openmc() + self._test_output_created() + finally: + self._cleanup() +