-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
scripts: tests: twister_blackbox: Add test test_verbose.py #67864
scripts: tests: twister_blackbox: Add test test_verbose.py #67864
Conversation
5e416ba
to
61ea687
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.
Changes needed are pretty small.
d9447af
to
e7f1ebf
Compare
pytest.raises(SystemExit) as sys_exit: | ||
self.loader.exec_module(self.twister_module) | ||
|
||
info_regex = r'INFO\s+-\s+(\d+/\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+\((\w+)\s+([\d.]+)s\)' |
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.
what this line searching for?
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.
Sample searched-for line when using the -v
flag:
INFO - 241/482 qemu_cortex_r5 tests/posix/common/portability.posix.common.static_stack PASSED (qemu 6.284s)
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.
in this case, we do not need such complex regex, I would recommand to have.
columns = line.split() if len(columns) == 6: print("The string has 6 columns.") else: print("The string does not have 6 columns.")
and check each column with regex for content
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 changed regex to work with that logic, is it correct?
53a9999
e7f1ebf
to
53a9999
Compare
53a9999
to
1b13d6e
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.
move the code to test_output.py
Add new test to twister blackbox tests Signed-off-by: Patryk Kuniecki <[email protected]>
1b13d6e
to
2c2e480
Compare
Moved |
Add new test to twister blackbox tests