From b36d2858ec60af3aa8ab3080497cc32d73980f29 Mon Sep 17 00:00:00 2001 From: Smit Gardhariya <113590758+smit-gardhariya@users.noreply.github.com> Date: Sat, 27 Jul 2024 12:03:45 +0530 Subject: [PATCH] Install AZL3 packages for QEMU platform (#3358) Signed-off-by: Smit Gardhariya --- lisa/sut_orchestrator/libvirt/transformers.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lisa/sut_orchestrator/libvirt/transformers.py b/lisa/sut_orchestrator/libvirt/transformers.py index 378f09ff7e..a45516144e 100644 --- a/lisa/sut_orchestrator/libvirt/transformers.py +++ b/lisa/sut_orchestrator/libvirt/transformers.py @@ -251,9 +251,16 @@ def install(self) -> str: packages_list = self._distro_package_mapping[type(linux).__name__] self._log.info(f"installing packages: {packages_list}") if isinstance(node.os, CBLMariner): - linux.install_packages( - ["mariner-repos-preview.noarch", "mariner-repos-extended"] - ) + node_info = node.get_information() + distro = node_info.get("distro_version", "") + if distro == "Microsoft Azure Linux 3.0": + linux.install_packages( + ["azurelinux-repos-preview.noarch", "azurelinux-repos-extended"] + ) + else: + linux.install_packages( + ["mariner-repos-preview.noarch", "mariner-repos-extended"] + ) linux.install_packages(packages_list) username = node.tools[Whoami].get_username() node.tools[Usermod].add_user_to_group(group=username, user="qemu", sudo=True)