Using test harness to run openmc instead

This commit is contained in:
shriwise 2018-09-11 08:19:23 -05:00 committed by pshriwise
parent 87b1b4d8ec
commit e1dde40f0a

View file

@ -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()