Skip to content

Commit

Permalink
remove cori from tests, fix unassigned var error
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Dec 11, 2023
1 parent 72c2cb6 commit 3aeae06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CIME/XML/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _probe_machine_name_one_guess(self, nametomatch):
def _probe_machine_name_one_guess_v2(self, nametomatch):

nodes = self.get_children("machine")

machine = None
for node in nodes:
machtocheck = self.get(node, "MACH")
logger.debug("machine is " + machtocheck)
Expand Down
10 changes: 5 additions & 5 deletions CIME/tests/test_sys_test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ def test_chksum(self, strftime): # pylint: disable=unused-argument
self.skipTest("Skipping chksum test. Depends on CESM settings")

ts = test_scheduler.TestScheduler(
["SEQ_Ln9.f19_g16_rx1.A.cori-haswell_gnu"],
machine_name="cori-haswell",
["SEQ_Ln9.f19_g16_rx1.A.perlmutter_gnu"],
machine_name="perlmutter",
chksum=True,
test_root="/tests",
)

with mock.patch.object(ts, "_shell_cmd_for_phase") as _shell_cmd_for_phase:
ts._run_phase(
"SEQ_Ln9.f19_g16_rx1.A.cori-haswell_gnu"
"SEQ_Ln9.f19_g16_rx1.A.perlmutter_gnu"
) # pylint: disable=protected-access

_shell_cmd_for_phase.assert_called_with(
"SEQ_Ln9.f19_g16_rx1.A.cori-haswell_gnu",
"SEQ_Ln9.f19_g16_rx1.A.perlmutter_gnu",
"./case.submit --skip-preview-namelist --chksum",
"RUN",
from_dir="/tests/SEQ_Ln9.f19_g16_rx1.A.cori-haswell_gnu.00:00:00",
from_dir="/tests/SEQ_Ln9.f19_g16_rx1.A.perlmutter_gnu.00:00:00",
)

def test_a_phases(self):
Expand Down

0 comments on commit 3aeae06

Please sign in to comment.