Skip to content

Commit 547f38d

Browse files
fix black8
fix black8
1 parent d01611f commit 547f38d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/cpufreq_governors.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,9 @@ def create(cls, governor, policy=0):
530530
test_class = cls._registry.get(governor.lower())
531531
if test_class is None:
532532
raise ValueError(
533-
f"Governor '{governor}' not supported. "
534-
f"Available: {', '.join(sorted(cls._registry.keys()))}"
533+
"Governor '{}' not supported. Available: {}".format(
534+
governor, ', '.join(sorted(cls._registry.keys()))
535+
)
535536
)
536537
return test_class(policy=policy)
537538

@@ -725,12 +726,13 @@ class UserspaceCPUScalingTest(CPUScalingTest, key="userspace"):
725726
"""
726727
CPU scaling test operations specific to the userspace governor.
727728
"""
729+
728730
description = """
729731
This job sets the governor to "userspace" and verifies the frequency
730732
when setting it to maximum and minimum.
731733
"""
732734

733-
def test_userspace(self) -> bool:
735+
def test_governor(self) -> bool:
734736
"""
735737
Run the Userspace Governor Test.
736738
@@ -756,10 +758,12 @@ class PerformanceCPUScalingTest(CPUScalingTest, key="performance"):
756758
CPU scaling test operations specific to the performance and powersave
757759
governors.
758760
"""
761+
759762
description = """
760763
This job sets the governor to "performance" and verifies whether
761764
the frequency is maximum.
762765
"""
766+
763767
def test_governor(self) -> bool:
764768
"""
765769
Run the Performance Governor Test.
@@ -779,6 +783,7 @@ class PowersaveCPUScalingTest(CPUScalingTest, key="powersave"):
779783
"""
780784
CPU scaling test operations specific to the powersave governor.
781785
"""
786+
782787
description = """
783788
This job sets the governor to "powersave" and verifies whether
784789
the frequency is minimum.
@@ -803,11 +808,13 @@ class OndemandCPUScalingTest(CPUScalingTest, key="ondemand"):
803808
"""
804809
CPU scaling test operations specific to the ondemand governor.
805810
"""
811+
806812
description = """
807813
This job sets the governor to "ondemand" and verifies whether the
808814
frequency will be maximum after stressing CPUs and settling down after
809815
sleeping for a few seconds.
810816
"""
817+
811818
def test_governor(self) -> bool:
812819
"""
813820
Run the Ondemand Governor Test.
@@ -827,6 +834,7 @@ class ConservativeCPUScalingTest(CPUScalingTest, key="conservative"):
827834
"""
828835
CPU scaling test operations specific to the conservative governor.
829836
"""
837+
830838
description = """
831839
This job sets the governor to "conservative" and verifies whether the
832840
frequency will be maximum after stressing CPUs and settling down after
@@ -852,11 +860,13 @@ class SchedutilCPUScalingTest(CPUScalingTest, key="schedutil"):
852860
"""
853861
CPU scaling test operations specific to the schedutil governor.
854862
"""
863+
855864
description = """
856865
This job sets the governor to "schedutil" and verifies whether the
857866
frequency will be maximum after stressing CPUs and settling down after
858867
sleeping for a few seconds.
859868
"""
869+
860870
def test_governor(self) -> bool:
861871
"""
862872
Run the Schedutil Governor Test.

0 commit comments

Comments
 (0)