-
Notifications
You must be signed in to change notification settings - Fork 66
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
Fix bug in RHEL6 detection by distributor id. #148
Fix bug in RHEL6 detection by distributor id. #148
Conversation
- There are two types of RHEL: server and workstation. - Distributor ID table only had a string for workstation. - Added a string for server.
Does this need a test? It looks like the coverage is the same as for the base branch. |
In principle, any distribution we can get our hands on should have a test. Coverage unfortunately doesn't mean you really cover every possible scenario. Can you add a test for this distro? You can see the contributions.md file for info. Thanks |
I can help add a test case. I'm the one who originally reported the problem. It occurred for me on RHEL 5 with the following
and:
Do we just need to add the |
Or would it be add |
Ok, added the following test in addition to my def test_rhel5_release(self):
desired_outcome = {
'id': 'rhel',
'name': 'Red Hat Enterprise Linux Server',
'pretty_name': 'Red Hat Enterprise Linux Server release 5.11 (Tikanga)',
'version': '5.11',
'pretty_version': '5.11 (Tikanga)',
'best_version': '5.11',
'codename': 'Tikanga',
'major_version': '5',
'minor_version': '11'
}
self._test_outcome(desired_outcome)
desired_info = {
'id': 'redhat',
'name': 'Red Hat Enterprise Linux Server',
'version_id': '5.11',
'codename': 'Tikanga'
}
self._test_release_file_info('redhat-release', desired_info) @nir0s How do I run the test locally to make sure it works? @tgamblin I wasn't able to push to your branch. |
Just run tox locally. Instructions are in the readme |
@adamjstewart: gave you access -- can you try again? |
Hmm, seems to be some strange error messages in Travis. Don't think those are my fault. |
It certainly isn't your fault. Travis are providing pypy3 with python 3.2 which isn't supported by pip9. Can you please rebase on top of master? Thanks. |
#165 fixed code coverage and rebased on top of master. |
This wasn't working on our RHEL6 clusters. It seems to figure out that our RHEL7 ones should be called
rhel
by some other means, but on RHEL6 it got down to the distributor ID. I updated the translation table to include the server release.- There are two types of RHEL: server and workstation.
- Distributor ID table only had a string for workstation.
- Added a string for server.