-
Notifications
You must be signed in to change notification settings - Fork 4
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
add log tests for test_kselftest parser #9
base: main
Are you sure you want to change the base?
Conversation
}, | ||
{ | ||
"error_summary": "Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2", | ||
"error_type": "linux.kernel.error_return_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.
why all those error_code strings 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.
they repeat several times in the log
"error_type": "linux.kernel.error_return_code" | ||
}, | ||
{ | ||
"error_summary": "not ok 1 selftests: exec: execveat # exit=1", |
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 wonder what 1 means in "not ok 1 selfests"
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.
this is output of kselftest, maybe @musamaanjum could shed a light?
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.
One kselftest can have several sub-tests or sub-test cases in it. 1
here just means that this is the output of the first test case from the test. This number is usually meanigless and only helps somewhat when we want to debug the failure. If its possible, just ignore this number.
add a log test to be executed when ./run_tests.sh Signed-off-by: Helen Koike <helen.koike@collabora.com>
execute it on push and on pull requests Signed-off-by: Helen Koike <helen.koike@collabora.com>
fix: /home/runner/work/logspec/logspec/logspec/errors/linux_kernel.py:127: SyntaxWarning: invalid escape sequence '\d' start_marker_regex = f'{LINUX_TIMESTAMP} .*?error -\d+.*?' Signed-off-by: Helen Koike <helen.koike@collabora.com>
index is out dated, update it with all the logs that were recently added. Signed-off-by: Helen Koike <helen.koike@collabora.com>
1127067
to
a2eb303
Compare
kselftest parser was added but tests were missing, add the tests and update the test indexes