Skip to content

Commit 0ac417e

Browse files
committed
fix error when testmods not defined
1 parent b902ca9 commit 0ac417e

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
@@ -801,7 +801,7 @@ def _run_phase(self, test):
801801
return True, "SKIPPED"
802802
else:
803803
# SmartSim test needs a wrapper to submit
804-
if "drv/smartsim" in testmods:
804+
if testmods and "drv/smartsim" in testmods:
805805
cmd = os.path.join(self._cime_root, "tools", "smartsim", "launch.py")
806806
else:
807807
cmd = "./case.submit"

0 commit comments

Comments
 (0)