Skip to content

Use modern distro API for platform info #1613

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions buildscripts/resmokelib/hang_analyzer/hang_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ def _log_system_info(self):
if sys.platform in ["win32", "cygwin"]:
self.root_logger.info("Windows Distribution: %s", platform.win32_ver())
else:
self.root_logger.info("Linux Distribution: %s", distro.linux_distribution())
self.root_logger.info(
"Linux Distribution: %s %s (%s)",
distro.name(),
distro.version(),
distro.codename(),
)

except AttributeError:
self.root_logger.warning("Cannot determine Linux distro since Python is too old")
Expand Down Expand Up @@ -320,7 +325,7 @@ def add_subcommand(self, subparsers):
default="contains",
help="Type of match for process names (-p & -g), specify 'contains', or"
" 'exact'. Note that the process name match performs the following"
" conversions: change all process names to lowecase, strip off the file"
" conversions: change all process names to lowercase, strip off the file"
" extension, like '.exe' on Windows. Default is 'contains'.",
)
parser.add_argument(
Expand Down