-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix!/fix certain naming issues, better patterns for multitests with parts #986
Conversation
5655fc0
to
fd1605b
Compare
b96fb05
to
ee57f30
Compare
2375b46
to
f903ca3
Compare
- fix tracing tests mt name output - fix xfail tests st name matching - fix task reassign check - some refactor & typing fix
- have consistent parts no matter filters presented - apply certain constraints on test names - fix a testing utility bug
4d3c488
to
52ec271
Compare
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.
When we change the part logic & add offset, do we need any change on merge end?
test_ttl_part_p | ||
) | ||
except ValueError: | ||
pass |
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.
why do we swallow the ValueError here?
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.
the ValueError should only come out from converting to integer call, if both of them are integers have a simple sanity check, else just pass it to fnmatch calls
res = res and self.filter_case(case) | ||
if not res: | ||
return False | ||
return True |
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 not sure I like the refactored version better... the original version is more direct about the intention.
speaking of filter_levels, maybe have a mapping from level -> handler, e.g FilterLevel.Test -> filter_test, then we can avoid enumerating all levels literally.
Update on dividing and merging cases could worth another PR, will revert related changes in this PR. |
tests/functional/testplan/testing/multitest/test_multitest_parts.py
Outdated
Show resolved
Hide resolved
fbf59da
to
b5ed5bd
Compare
revert a bad refactor as well
Spec to be discussed and updated.
Bug / Requirement Description
Clearly and concisely describe the problem.
Solution description
Describe your code changes in detail for reviewers.
Checklist: