mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Using test harness to run openmc instead
This commit is contained in:
parent
87b1b4d8ec
commit
e1dde40f0a
1 changed files with 3 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue