Skip to content

Commit

Permalink
install needed package for ADE extensions on old distro
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Oct 21, 2023
1 parent 01af050 commit e4ca114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions microsoft/testsuites/vm_extensions/azure_disk_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def before_case(self, log: Logger, **kwargs: Any) -> None:
node = kwargs["node"]
if not self._is_supported_linux_distro(node):
raise SkippedException(UnsupportedDistroException(node.os))
needed_packages = ["python-parted", "python3-parted"]
for package in needed_packages:
if node.os.is_package_in_repo(package):
node.os.install_packages(package)

@TestCaseMetadata(
description="""
Expand Down

0 comments on commit e4ca114

Please sign in to comment.