-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RHELC-297] Clean up kmods functionality (#469)
* Clean up kmods functionality These changes are cleanup of most of the things that were left behind from PR#193. Some of the functions were changed to make it easier to read and debug if necessary, some of them were moved around to the files that made sense to place they and some of them just needed a docstring to tell what the function was all about. This PR it is introduced a unit test for the function `get_enabled_rhel_repos` since that was introduced in the past and never had a unit test tied to it. Jira reference (If any): https://issues.redhat.com/browse/OAMG-4668 Bugzilla reference (If any): Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Add unit tests for the code refactored Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Apply integration tests from a59c4bd Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Apply patch from 3b61461 Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Apply suggestions from Michal's review Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Edit force loaded kmod test As discussed with developers, force loaded kmod should inhibit the c2r run, as it is denoted with (FE) for F = module was force loaded E = unsigned module was loaded. Signed-off-by: Daniel Diblik <ddiblik@redhat.com> * Incorporate review suggestions fix typos Signed-off-by: Daniel Diblik <ddiblik@redhat.com> * Fix formatting issue Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Fix unit_tests Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Add cmp_to_key for python 2.6 compatibility Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Update convert2rhel/checks.py Co-authored-by: Michal Bocek <mbocek@redhat.com> Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Signed-off-by: Daniel Diblik <ddiblik@redhat.com> Co-authored-by: Daniel Diblik <ddiblik@redhat.com> Co-authored-by: Michal Bocek <mbocek@redhat.com>
- Loading branch information
1 parent
41f9806
commit 1e52449
Showing
11 changed files
with
460 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.