Skip to content

Commit dcbfa25

Browse files
lib/me.robot: fix (#579)
Signed-off-by: Wiktor Mowinski <[email protected]>
1 parent 438210b commit dcbfa25

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

lib/me.robot

+13-8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ${EXPECTED}= 00:16.0
1515
Check ME Out
1616
[Documentation] Keyword Runs Lspci To Check Whether The ME Device
1717
... Exists Or Not
18+
...
1819
${out}= Execute Command In Terminal lspci
1920
${condition}= Evaluate '${EXPECTED}' in """${out}"""
2021
IF ${condition}
@@ -30,13 +31,17 @@ Check ME State
3031
... -Disabled (HAP) for 2
3132
... -Enabled for 0
3233
${out}= Execute Command In Terminal setpci -s 16.0 40.L
33-
${char}= Evaluate ${out}[3]
34-
# Current Operation Mode: bits 16:19 of register HFSTS1 (0x40)
35-
IF '${char}' == '3'
36-
${result}= Evaluate 'Disabled (Soft)'
37-
ELSE IF '${char}' == '2'
38-
${result}= Evaluate 'Disabled (HAP)'
39-
ELSE IF '${char}' == '0'
40-
${result}= Evaluate 'Enabled'
34+
IF "No devices selected for operation group 1." in """${out}"""
35+
${result}= Evaluate 'Disabled'
36+
ELSE
37+
${char}= Evaluate ${out}[3]
38+
# Current Operation Mode: bits 16:19 of register HFSTS1 (0x40)
39+
IF '${char}' == '3'
40+
${result}= Evaluate 'Disabled (Soft)'
41+
ELSE IF '${char}' == '2'
42+
${result}= Evaluate 'Disabled (HAP)'
43+
ELSE IF '${char}' == '0'
44+
${result}= Evaluate 'Enabled'
45+
END
4146
END
4247
RETURN ${result}

0 commit comments

Comments
 (0)