Skip to content

Commit 3f78c93

Browse files
committed
Hibernation: Add Alma to supported list
1 parent b8dc542 commit 3f78c93

File tree

2 files changed

+3
-168
lines changed

2 files changed

+3
-168
lines changed

microsoft/testsuites/power/common.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from lisa.base_tools.cat import Cat
1111
from lisa.features import StartStop
1212
from lisa.features.startstop import VMStatus
13-
from lisa.operating_system import SLES, Debian, Redhat, Ubuntu
13+
from lisa.operating_system import SLES, AlmaLinux, Debian, Redhat, Ubuntu
1414
from lisa.tools import (
1515
Dmesg,
1616
Fio,
@@ -43,6 +43,7 @@ def is_distro_supported(node: Node) -> None:
4343
or (type(node.os) == Redhat and node.os.information.version >= "8.3.0")
4444
or (type(node.os) == Debian and node.os.information.version >= "10.0.0")
4545
or (type(node.os) == SLES and node.os.information.version >= "15.6.0")
46+
or (type(node.os) == AlmaLinux and node.os.information.version >= "9.5.0")
4647
):
4748
raise SkippedException(
4849
f"hibernation setup tool doesn't support current distro {node.os.name}, "
@@ -78,7 +79,7 @@ def verify_hibernation(
7879
# the hibernation-setup tool.
7980
# A sleep(100) also works, but we are unsure of the exact time required.
8081
# So it is safer to reboot the VM.
81-
if type(node.os) == Redhat or type(node.os) == SLES:
82+
if type(node.os) == Redhat or type(node.os) == AlmaLinux or type(node.os) == SLES:
8283
node.reboot()
8384

8485
boot_time_before_hibernation = node.execute(

microsoft/testsuites/vm_extensions/runtime_extensions/common.py

-166
This file was deleted.

0 commit comments

Comments
 (0)