-
Notifications
You must be signed in to change notification settings - Fork 345
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
Selftest refactoring to fix masked tests #5822
Selftest refactoring to fix masked tests #5822
Conversation
Dear contributor,
As for the Avocado utility modules (“avocado.utils”) it is OK to introduce new functionality, |
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.
@richtja thanks for addressing this issue! I've let a couple of comments which are blockers IMO.
bf906a8
to
d75cf74
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.
Hi @richtja,
This looks almost ready to be merged, but there a couple of things to address:
- There's a missing white space in the
check.py
, like insuite static-checks doesn't have 6 testsit has 7.
- The order of the commits should be changed in order to help with bisecting. The following order wouldn't break bisecting:
basic selftests after changes fix
add logging stream name to test logs
Selftest refactoring to fix masked tests
selftest size check
One extra nitpick is that the description of the "first" commit there would need a tweak ("basic selftests after changes fix" wouldn't make sense anymore).
Thanks for the review @clebergnu, I will reorder the commits. |
A few basic tests related to logging has been masked because of avocado-framework#5817. This is a fix for those tests to catch up with latest changes. Signed-off-by: Jan Richter <[email protected]>
In avocado-framework#5665 we introduced the logging stream name in test logs, this added more possibilities for user how to post-process test logs. Unfortunately, this change also hided information about modules where the log has been created. This issue has been solved in avocado-framework#5732. This commit connects those two solutions by storing stream and module names. Referencei: avocado-framework#5665 avocado-framework#5732 Signed-off-by: Jan Richter <[email protected]>
Some functional tests have been masked out due to a safeloader behavior from avocado-framework#5817. This commit fixes this problem by changing the tests classes from unittests to avocado instrumented, where it is needed. Also, it adds warning to avocado documentation about this behavior. Reference: avocado-framework#5817 Signed-off-by: Jan Richter <[email protected]> Signed-off-by: Cleber Rosa <[email protected]>
This adds selftest size check to the avocado check.py. This checks the size of avocado selftests to avoid test issues from avocado-framework#5817. Signed-off-by: Jan Richter <[email protected]>
d75cf74
to
e02cf0e
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.
LGTM, thanks!
Some functional tests have been masked out due to a safeloader behavior
from #5817. This commit fixes this problem by changing the tests classes
from unittests to avocado instrumented, where it is needed. Also, it
adds warning to avocado documentation about this behavior.
Reference: #5817
Signed-off-by: Jan Richter [email protected]