Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernation: Add SLES >= 15.6.0 to supported list #3604

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions microsoft/testsuites/power/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from lisa.base_tools.cat import Cat
from lisa.features import StartStop
from lisa.features.startstop import VMStatus
from lisa.operating_system import Debian, Redhat, Ubuntu
from lisa.operating_system import SLES, Debian, Redhat, Ubuntu
from lisa.tools import (
Dmesg,
Fio,
Expand Down Expand Up @@ -42,6 +42,7 @@ def is_distro_supported(node: Node) -> None:
(type(node.os) == Ubuntu and node.os.information.version >= "18.4.0")
or (type(node.os) == Redhat and node.os.information.version >= "8.3.0")
or (type(node.os) == Debian and node.os.information.version >= "10.0.0")
or (type(node.os) == SLES and node.os.information.version >= "15.6.0")
):
raise SkippedException(
f"hibernation setup tool doesn't support current distro {node.os.name}, "
Expand Down Expand Up @@ -77,7 +78,7 @@ def verify_hibernation(
# the hibernation-setup tool.
# A sleep(100) also works, but we are unsure of the exact time required.
# So it is safer to reboot the VM.
if type(node.os) == Redhat:
if type(node.os) == Redhat or type(node.os) == SLES:
node.reboot()

boot_time_before_hibernation = node.execute(
Expand Down
Loading