Commit Graph

4 Commits (master)

Author SHA1 Message Date
Shinji Suzuki 80c5a47381 Refactored distro() function with two alterations.
* file availability based checks are performed before keyword based checks.
* Next file will be tried if I/O error is raised.
6 years ago
Shinji Suzuki ffa7c4a03d Move back the check for centos-live to stay above the check for fedora.
More unittests on distro detection using unittest.TestCase.
6 years ago
Shinji Suzuki 13fd72fad4 Avoid logging unbounded amount of info.
Replace code sequence with data definition.
6 years ago
Shinji Suzuki b7c99c138e Add unit test. 6 years ago