How to use _install_ninja_and_meson method in lisa

Best Python code snippet using lisa_python

dpdktestpmd.py

Source:dpdktestpmd.py Github

copy

Full Screen

...653 self._ubuntu_packages_1804,654 extra_args=self._debian_backports_args,655 )656 if not self.use_package_manager_install():657 self._install_ninja_and_meson()658 else:659 ubuntu.install_packages(660 self._ubuntu_packages_2004,661 extra_args=self._debian_backports_args,662 )663 def _install_fedora_dependencies(self) -> None:664 node = self.node665 rhel = node.os666 if not isinstance(rhel, Fedora):667 fail(668 "_install_fedora_dependencies was called on node "669 f"which was not Fedora: {node.os.information.full_version}"670 )671 return # appease the type checker672 # DPDK is very sensitive to rdma-core/kernel mismatches673 # update to latest kernel before instaling dependencies674 rhel.install_packages("kernel")675 node.reboot()676 if rhel.information.version.major == 7:677 # Add packages for rhel7678 rhel.install_packages(["libmnl-devel", "libbpf-devel"])679 try:680 rhel.install_packages("kernel-devel-$(uname -r)")681 except MissingPackagesException:682 node.log.debug("kernel-devel-$(uname -r) not found. Trying kernel-devel")683 rhel.install_packages("kernel-devel")684 # RHEL 8 doesn't require special cases for installed packages.685 # TODO: RHEL9 may require updates upon release686 rhel.group_install_packages("Development Tools")687 rhel.group_install_packages("Infiniband Support")688 rhel.install_packages(self._fedora_packages)689 # ensure RDMA service is started if present.690 service_name = "rdma"691 service = node.tools[Service]692 if service.check_service_exists(service_name):693 if not service.check_service_status(service_name):694 service.enable_service(service_name)695 # some versions of RHEL and CentOS have service.rdma696 # that will refuse manual start/stop and will return697 # NOPERMISSION. This is not fatal and can be continued.698 # If the service is present it should start when needed.699 service.restart_service(700 service_name, ignore_exit_code=service.SYSTEMD_EXIT_NOPERMISSION701 )702 if not self.use_package_manager_install():703 self._install_ninja_and_meson()704 def _install_ninja_and_meson(self) -> None:705 node = self.node706 cwd = node.working_path707 node.execute(708 "pip3 install --upgrade meson",709 cwd=cwd,710 sudo=True,711 expected_exit_code=0,712 expected_exit_code_failure_message=(713 "Failed to update Meson to latest version with pip3"714 ),715 )716 if node.shell.exists(node.get_pure_path("/usr/bin/meson")):717 node.execute(718 "mv /usr/bin/meson /usr/bin/meson.bak",...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run lisa automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful