-
Notifications
You must be signed in to change notification settings - Fork 180
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
DPDK: install path fixes for meson and Ubuntu 24.04 #3598
base: main
Are you sure you want to change the base?
Conversation
lisa/tools/meson.py
Outdated
package_available = "" | ||
for pkg in ["meson", "python3-meson"]: | ||
if ( | ||
posix_os.package_exists(pkg) |
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.
Move the implementation into check_exists, so other place can reuse it.
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.
Version checking?
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 mean the package existing check, it should be done in _check_exists
command, shell=True, sudo=True, timeout=timeout | ||
) | ||
|
||
if install_result.exit_code == 0: |
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.
Assert the result to get it simpler.
return self._package_exists(package_name) | ||
exists = self._package_exists(package_name) | ||
if exists and minimum_version: | ||
return ( |
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.
It needs to print debug message, if min version is not met. It saves time to troubleshooting the reason.
Fixing some bugs which were noted after testing on Ubuntu 24.04: