diff --git a/tests/unit_tests/cad/test_cad.py b/tests/unit_tests/cad/test_cad.py index d73069297d..4b5ae34cf9 100644 --- a/tests/unit_tests/cad/test_cad.py +++ b/tests/unit_tests/cad/test_cad.py @@ -1,9 +1,4 @@ - -from subprocess import call - -import os -import sys - +from tests.testing_harness import TestHarness import pytest pytestmark = pytest.mark.skipif( @@ -11,10 +6,5 @@ pytestmark = pytest.mark.skipif( reason="CAD build is not enabled.") def test_cad(): - # make sure cwd is in the python system path - d = os.path.abspath(os.path.dirname(__file__)) - # move here - os.chdir(d) - # run test - assert not call(['openmc','-s','1']) - + harness = TestHarness('statepoint.15.h5') + harness.main()