-
Notifications
You must be signed in to change notification settings - Fork 157
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
spec: test kernel_match_version? function #242
Comments
@rli9 Can you please explain me this issue? What exactly has to be done? |
The function is to check whether kernel_version is contained in expected_kernel_versions
For example
Consider the workaround in code
It can be tested with
The possible input of expected_kernel_versions can be found at etc/kconfigs.yaml, such as
Or feel free to construct valid and invalid ones |
Hey @rli9, me and @saiteja13427 were looking at your comment. We got that |
Thanks, the initial goal is to add the rspec unit test (refer to spec dir for existing ones) to test this method with either positive or negative tests based on your understanding of this method. If any issue is found (like a unit test fails which is supposed to work), you can then file a new issue after confirmed. So for the new issue (the bug fix), you can modify the method to fix the bug. There's no requirement for documentation initially, but it would be appreciated/helpful to enhance the documentation and readability of it. |
The function is defined in lib/kernel_tag.rb
Reference
https://github.com/intel/lkp-tests/wiki/Coding-Standard#rspec-test
The text was updated successfully, but these errors were encountered: