From 3aeae0675ffcbbea0d5c9ff263ad0d0e084cbe77 Mon Sep 17 00:00:00 2001 From: James Edwards Date: Mon, 11 Dec 2023 11:03:38 -0700 Subject: [PATCH] remove cori from tests, fix unassigned var error --- CIME/XML/machines.py | 2 +- CIME/tests/test_sys_test_scheduler.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CIME/XML/machines.py b/CIME/XML/machines.py index 93ab27fbcf0..d08e3efb140 100644 --- a/CIME/XML/machines.py +++ b/CIME/XML/machines.py @@ -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) diff --git a/CIME/tests/test_sys_test_scheduler.py b/CIME/tests/test_sys_test_scheduler.py index b53809ba306..3dfd4b62124 100755 --- a/CIME/tests/test_sys_test_scheduler.py +++ b/CIME/tests/test_sys_test_scheduler.py @@ -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):