-
Notifications
You must be signed in to change notification settings - Fork 219
Made ERI F1850C test work with gregorian calendar. #4899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
14f3b15
82240cf
8b13390
0afcb5f
aee737f
5078565
68d2197
cc3d9c4
33b54d8
82493b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -674,12 +674,12 @@ def _create_newcase_phase(self, test): | |||
| create_newcase_cmd += " --mpilib {}".format(mpilib) | ||||
| logger.debug(" MPILIB set to {}".format(mpilib)) | ||||
| elif case_opt.startswith("N"): | ||||
| expect(ncpl == 1, "Cannot combine _C and _N options") | ||||
| expect(ncpl == 1, "Cannot combine _C# and _N options") | ||||
| ninst = case_opt[1:] | ||||
| create_newcase_cmd += " --ninst {}".format(ninst) | ||||
| logger.debug(" NINST set to {}".format(ninst)) | ||||
| elif case_opt.startswith("C"): | ||||
| expect(ninst == 1, "Cannot combine _C and _N options") | ||||
| elif case_opt.startswith("C") and not case_opt.startswith("CG"): | ||||
| expect(ninst == 1, "Cannot combine _C# and _N options") | ||||
|
||||
| or opt.startswith("G") # handled in create_newcase |
In all, I still lean towards "_cG", but don't feel strongly about it. So, @kdraeder, @jedwards4b or anyone else - if you have even moderately strong opinions about it, I'm happy to go with your feelings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh, I missed that one.
I can see some value in being able to provide other calendars.
I don't have a deep background in what testing is or needs to be done,
so I don't have a strong opinion keeping the capital letter convention or adding modifiers.
A more thorough search leads me to believe that F, H, J, K, O, Q, S, T, U, W-Z are not being used.
_T for time? _K for kalender?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still vote for lowercase "_c": I'd prefer something more mnemonic even if it breaks with the current uppercase convention.
@jedwards4b , @jgfouca @jasonb5 - any opinions on using a lowercase _c as a test modifier to specify calendar, replacing the current uppercase _C, which is currently used for two different purposes? It would be the first use of a lowercase test option, though I personally feel okay about this precedent as we get more and more test modifiers and start running out of letters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine with me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kdraeder is it okay with you if I push a change to your branch to change to using _c as the test modifier for calendar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kdraeder is it okay with you if I push a change to your branch to change to using
_cas the test modifier for calendar?
Yes, that should work well.
In which case the line that tests for _C and not _CG can be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this fix, but the comment is confusing, since I think it only applies to a specific case, not a general issue with the ERI test. What about changing it to something like:
(Note that I have also removed your initials and removed the commented-out old code.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that comment is mostly left over from debugging.
Your suggestion looks good.
We could consider being more specific about "because of how this test is set up".
"because a testmod which tests the gregorian calendar starts the runs on leap day,
which must exist in all of the start years."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like your updated wording - my ambiguity came from my not fully understanding the situation.
Can you change this wording to your suggested version on top of mine?