-
Notifications
You must be signed in to change notification settings - Fork 386
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
WT-7864 Add support to run.py for running lists/ranges of scenarios in a test #6812
WT-7864 Add support to run.py for running lists/ranges of scenarios in a test #6812
Conversation
The syntax supported matches e.g. 1-3,5,7-9. A single number is handled as a trivial list.
autobuild: Can one of the admins verify this patch? |
Thanks for submitting this improvement, I'll review it today. 👍 |
test/suite/run.py
Outdated
@@ -178,16 +178,38 @@ def show_env(verbose, envvar): | |||
# e.g. test_util03 -> util | |||
reCatname = re.compile(r"test_([^0-9]+)[0-9]*") | |||
|
|||
# look for a list of the form 0-9,11,15-17 |
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.
Capitalize the start of comments.
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.
Fixed. Sorry, going to take a while to get used to that...
Please update the usage text on line 134. |
Updated the usage message too, good point :-) |
test/suite/run.py
Outdated
# Look for a list of the form 0-9,11,15-17. | ||
def parse_int_list(str): | ||
ret = {} | ||
# divide into ranges separated by commas |
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.
@sauclovian-wt all comments should be fully formed sentences.
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.
Right, I fixed the rest of them. Sorry, this is probably going to continue to happen some in the short term as I'm not used to that requirement :-/
@sauclovian-wt This is looking good to me, one final comment regarding adding an additional comment 👍 . |
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.
LGTM.
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.
LGTM
Thanks! |
Add support to run.py for running lists/ranges of scenarios with -s.
The syntax supported matches e.g. 1-3,5,7-9. A single number is handled
as a trivial list.