-
Notifications
You must be signed in to change notification settings - Fork 204
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
mention CPU arch name in comment for uploaded test report, if it's known by archspec #3227
Conversation
…rmine CPU arch name
worth also showing the arch name in |
Good point, fixed in 1d571f0, should be good to go now? |
@@ -1166,6 +1167,11 @@ def show_system_info(self): | |||
" -> vendor: %s" % system_info['cpu_vendor'], | |||
" -> architecture: %s" % get_cpu_architecture(), | |||
" -> family: %s" % get_cpu_family(), | |||
] | |||
if cpu_arch_name: | |||
lines.append(" -> arch name: %s" % cpu_arch_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a small inconsistency... if here you mean exactly this, then without archspec it will still be printed, but UNKNOWN, and in test_show_system_info
there is no reason to check for HAVE_ARCHSPEC, since the pattern will always be there
otherwise this should be if cpu_arch_name != UNKNOWN
, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should hint that archspec
is not installed when cpu_arch__name == UNKNOWN
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Going in, thanks @boegel! |
leveraging
archspec
if it's installed (https://github.com/archspec/archspec)