Skip to content

Commit d5b122f

Browse files
committed
fix error when testmods not defined
1 parent f5739d0 commit d5b122f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lib/CIME/test_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def _run_phase(self, test):
802802
return True, "SKIPPED"
803803
else:
804804
# SmartSim test needs a wrapper to submit
805-
if "drv/smartsim" in testmods:
805+
if testmods and "drv/smartsim" in testmods:
806806
cmd = os.path.join(self._cime_root, "tools", "smartsim", "launch.py")
807807
else:
808808
cmd = "./case.submit"

0 commit comments

Comments
 (0)