Open slevis-lmwg opened 1 year ago
The part of the code is here:
elif opt.startswith("L"):
match = re.match("L([A-Za-z])([0-9]*)", opt)
stop_option = {
"y": "nyears",
"m": "nmonths",
"d": "ndays",
"h": "nhours",
"s": "nseconds",
"n": "nsteps",
}
opt = match.group(1)
What should happen is that match should be queried to ensure it's a valid match. If it isn't it should return a sensible error to explain what went wrong. This same sort of thing should be added to other such matches for test types. This would allow the user to debug the problem on their own, rather than having to struggle to figure it out.
An interesting thing here is that the above actually worked for me even though it probably shouldn't have. So a better error check would be better for everyone.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.
./create_test SMS_L10d_D_Mmpi-serial.CLM_USRDAT.I1PtClm51Bgc.izumi_nag.clm-default--clm-NEON-NIWO
gave me this error:For the test to work, @ekluzek and I discovered that we needed to replace L10d with Ld10 in the test name.
Relates to https://github.com/ESCOMP/CTSM/issues/2043