Fix test cases for Azure Linux 3.0

This commit is contained in:
bhagyapathak 2024-08-26 09:29:52 +00:00 коммит произвёл LiliDeng
Родитель c145b86c00
Коммит 8616100a1c
4 изменённых файлов: 20 добавлений и 8 удалений

Просмотреть файл

@ -94,6 +94,7 @@ class Netperf(Tool):
"binutils",
"glibc-devel",
"zlib-devel",
"perl-CPAN",
"automake",
"autoconf",
]

Просмотреть файл

@ -56,6 +56,7 @@ class Vdsotest(Tool):
"binutils",
"glibc-devel",
"kernel-headers",
"perl-CPAN",
]
)
else:

Просмотреть файл

@ -737,14 +737,23 @@ class AzureImageStandard(TestSuite):
mariner_repositories = [
cast(RPMRepositoryInfo, repo) for repo in repositories
]
expected_repo_list = [
"mariner-official-base",
"mariner-official-microsoft",
]
if 1 == node.os.information.version.major:
expected_repo_list += ["mariner-official-update"]
elif 2 == node.os.information.version.major:
expected_repo_list += ["mariner-official-extras"]
if 3 == node.os.information.version.major:
expected_repo_list = [
"azurelinux-official-base",
"azurelinux-official-ms-non-oss",
"azurelinux-official-ms-oss",
]
else:
expected_repo_list = [
"mariner-official-base",
"mariner-official-microsoft",
]
if 1 == node.os.information.version.major:
expected_repo_list += ["mariner-official-update"]
elif 2 == node.os.information.version.major:
expected_repo_list += ["mariner-official-extras"]
for id_ in expected_repo_list:
is_repository_present = any(
id_ in repository.id for repository in mariner_repositories

Просмотреть файл

@ -113,6 +113,7 @@ class Xfstests(Tool):
"kernel-headers",
"util-linux-devel",
"psmisc",
"perl-CPAN",
]
# Passed all 35 tests
__all_pass_pattern = re.compile(