Skip to content

Commit

Permalink
fix default driver setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 2, 2024
1 parent 3ee490e commit 37c9dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CIME/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def setUp(self):
self._cprnc = self.MACHINE.get_value("CCSM_CPRNC")
customize_path = os.path.join(utils.get_src_root(), "cime_config", "customize")
self._config = Config.load(customize_path)

self._driver = utils.get_cime_default_driver()

def tearDown(self):
self.kill_subprocesses()

Expand Down Expand Up @@ -208,8 +209,7 @@ def _create_test(
the order of the returned list is not guaranteed to match the order of the arguments.
"""
# All stub model not supported in nuopc driver
driver = utils.get_cime_default_driver()
if driver == "nuopc" and "cime_developer" in extra_args:
if self._driver == "nuopc" and "cime_developer" in extra_args:
extra_args.append(
" ^SMS_Ln3.T42_T42.S ^PRE.f19_f19.ADESP_TEST ^PRE.f19_f19.ADESP ^DAE.ww3a.ADWAV ^IRT_N2_Vmct_Ln9.f19_g16_rx1.A"
)
Expand Down
2 changes: 1 addition & 1 deletion CIME/tests/test_sys_manage_and_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setUp(self):

def _run_and_assert_query_testlist(self, extra_args=""):
"""Ensure that query_testlist runs successfully with the given extra arguments"""
files = Files()
files = Files(self._driver)
testlist_drv = files.get_value("TESTS_SPEC_FILE", {"component": "drv"})

self.run_cmd_assert_result(
Expand Down

0 comments on commit 37c9dba

Please sign in to comment.