We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bcf0f7 + be3cb68 commit c142906Copy full SHA for c142906
avocado/utils/cpu.py
@@ -36,6 +36,7 @@
36
"ibm": (
37
rb"POWER\d",
38
rb"IBM/S390",
39
+ rb"Power\d",
40
),
41
}
42
@@ -198,6 +199,7 @@ def get_arch():
198
199
cpu_table = [
200
(b"^cpu.*(RS64|Broadband Engine)", "powerpc"),
201
(rb"^cpu.*POWER\d+", "powerpc"),
202
+ (rb"^cpu.*Power\d+", "powerpc"),
203
(b"^cpu.*PPC970", "powerpc"),
204
(
205
b"(ARM|^CPU implementer|^CPU part|^CPU variant"
@@ -261,7 +263,7 @@ def get_family():
261
263
res = []
262
264
try:
265
for line in _get_info():
- res = re.findall(rb"cpu\s+:\s+(POWER\d+)", line)
266
+ res = re.findall(rb"cpu\s+:\s+(POWER\d+|Power\d+)", line, re.IGNORECASE)
267
if res:
268
break
269
family = res[0].decode("utf-8").lower()
0 commit comments