зеркало из https://github.com/microsoft/lisa.git
DPDK: Check for backport repo before setting argument (#2193)
This commit is contained in:
Родитель
69e7a27c30
Коммит
cdb0be3418
|
@ -442,9 +442,12 @@ class DpdkTestpmd(Tool):
|
|||
self._determine_network_hardware()
|
||||
node = self.node
|
||||
if isinstance(node.os, Debian):
|
||||
self._debian_backports_args = [
|
||||
f"-t {node.os.information.codename}-backports"
|
||||
]
|
||||
repos = node.os.get_repositories()
|
||||
backport_repo = f"{node.os.information.codename}-backports"
|
||||
if any([backport_repo in repo.name for repo in repos]):
|
||||
self._debian_backports_args = [f"-t {backport_repo}"]
|
||||
else:
|
||||
self._debian_backports_args = []
|
||||
self._install_dependencies()
|
||||
# installing from distro package manager
|
||||
if self.use_package_manager_install():
|
||||
|
|
Загрузка…
Ссылка в новой задаче