Skip to content

Commit

Permalink
More python unit test path fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaxmonsky committed Dec 5, 2024
1 parent ff36e21 commit cd5b5e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/unit/python/test_create_readnl_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import xml.etree.ElementTree as ET

_TEST_DIR = os.path.dirname(os.path.abspath(__file__))
_CAM_ROOT = os.path.abspath(os.path.join(_TEST_DIR, os.pardir, os.pardir))
_CAM_ROOT = os.path.abspath(os.path.join(_TEST_DIR, os.pardir, os.pardir, os.pardir))
_CCPP_DIR = os.path.join(_CAM_ROOT, "ccpp_framework", "scripts")
_CIME_CONFIG_DIR = os.path.join(_CAM_ROOT, "cime_config")
_XML_SAMPLES_DIR = os.path.join(_TEST_DIR, "sample_files")
Expand Down
2 changes: 1 addition & 1 deletion test/unit/python/test_hist_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import unittest

__TEST_DIR = os.path.dirname(os.path.abspath(__file__))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir, os.pardir))
__CIME_CONFIG_DIR = os.path.join(_CAM_ROOT, "cime_config")
_SAMPLE_FILES_DIR = os.path.join(__TEST_DIR,
"sample_files", "hist_config_files")
Expand Down
2 changes: 1 addition & 1 deletion test/unit/python/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import xml.etree.ElementTree as ET

__TEST_DIR = os.path.dirname(os.path.abspath(__file__))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir, os.pardir))
__REGISTRY_DIR = os.path.join(_CAM_ROOT, "src", "data")
_SAMPLE_FILES_DIR = os.path.join(__TEST_DIR, "sample_files")
_TMP_DIR = os.path.join(__TEST_DIR, "tmp")
Expand Down
2 changes: 1 addition & 1 deletion test/unit/python/test_write_init_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import logging

__TEST_DIR = os.path.dirname(os.path.abspath(__file__))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir))
_CAM_ROOT = os.path.abspath(os.path.join(__TEST_DIR, os.pardir, os.pardir, os.pardir))
__CCPP_DIR = os.path.join(_CAM_ROOT, "ccpp_framework", "scripts")
__REGISTRY_DIR = os.path.join(_CAM_ROOT, "src", "data")
_REG_SAMPLES_DIR = os.path.join(__TEST_DIR, "sample_files")
Expand Down

0 comments on commit cd5b5e4

Please sign in to comment.