mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
More updates to CAD test. Attempt at skip if DAGMC is not enabled. Attempting to add local directory to path.
This commit is contained in:
parent
f2cb4da8d9
commit
1befe1c059
1 changed files with 15 additions and 1 deletions
|
|
@ -1,6 +1,20 @@
|
|||
|
||||
from subprocess import call
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
import pytest
|
||||
pytestmark = pytest.mark.skipif(
|
||||
os.environ.get('CAD') != 'y',
|
||||
reason="CAD build is not enabled.")
|
||||
|
||||
def test_cad():
|
||||
assert not call(['openmc -s 1'])
|
||||
# make sure cwd is in the python system path
|
||||
d = os.path.abspath(os.path.dirname(__file__))
|
||||
print(d)
|
||||
sys.path.append(d)
|
||||
|
||||
assert not call(['openmc','-s','1'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue