How to use group_install_packages method in lisa

Best Python code snippet using lisa_python

operating_system.py

Source:operating_system.py Github

copy

Full Screen

...1103 else:1104 raise LisaException(1105 f"Failed to install {packages}. exit_code: {result.exit_code}"1106 )1107 def group_install_packages(self, group_name: str) -> None:1108 # trigger to run _initialize_package_installation1109 self._get_package_list(group_name)1110 result = self._node.execute(f'yum -y groupinstall "{group_name}"', sudo=True)1111 self._verify_package_result(result, group_name)1112 def _get_information(self) -> OsInformation:1113 cmd_result = self._node.execute(1114 # Typical output of 'cat /etc/fedora-release' is -1115 # Fedora release 22 (Twenty Two)1116 cmd="cat /etc/fedora-release",1117 no_error_log=True,1118 expected_exit_code=0,1119 expected_exit_code_failure_message="error on get os information",1120 )1121 full_version = cmd_result.stdout...

Full Screen

Full Screen

dpdktestpmd.py

Source:dpdktestpmd.py Github

copy

Full Screen

...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 )...

Full Screen

Full Screen

kernel_source_installer.py

Source:kernel_source_installer.py Github

copy

Full Screen

...188 ["elfutils-libelf-devel", "openssl-devel", "dwarves", "bc"]189 ):190 if os.is_package_in_repo(package):191 os.install_packages(package)192 os.group_install_packages("Development Tools")193 if os.information.version < "8.0.0":194 # git from default CentOS/RedHat 7.x does not support git tag format195 # syntax temporarily use a community repo, then remove it196 node.execute("yum remove -y git", sudo=True)197 node.execute(198 "rpm -U https://centos7.iuscommunity.org/ius-release.rpm", sudo=True199 )200 os.install_packages("git2u")201 node.execute("rpm -e ius-release", sudo=True)202 elif isinstance(os, Ubuntu):203 # ccache is used to speed up recompilation204 os.install_packages(205 [206 "git",...

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