A logwarn wrapper with openQA log specific rules.
- Install logwarn via
sudo zypper in logwarn
if you're on openSUSE Tumbleweed or from https://github.com/archiecobbs/logwarn otherwise. - Call
logwarn_openqa
. By default it will read logs from /var/log/openqa which is where openQA stores logs by default. You can pass another path as the first argument. - Extend the list of known warnings by adding arguments to the
logwarn
call at the top oflogwarn_openqa
.
- For testing you can execute
test_logwarn
directly orprove test_logwarn
. - You can add new cases by extending
in.log
as well astest_logwarn
.
This project lives in https://github.com/os-autoinst/openqa-logwarn
Feel free to add issues in github or send pull requests.
-
Every commit is checked by GitHubActions as soon as you create a pull request but you should test locally, see the Usage section for details.
-
Make sure to add test reference data for new scenarios. TDD is advised :-)
-
For git commit messages use the rules stated on How to Write a Git Commit Message as a reference
If this is too much hassle for you feel free to provide incomplete pull requests for consideration or create an issue with a code change proposal.
This project is licensed under the MIT license, see LICENSE file for details.