File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ ${EXPECTED}= 00:16.0
15
15
Check ME Out
16
16
[Documentation] Keyword Runs Lspci To Check Whether The ME Device
17
17
... Exists Or Not
18
+ ...
18
19
${out } = Execute Command In Terminal lspci
19
20
${condition } = Evaluate '${EXPECTED } ' in """${out } """
20
21
IF ${condition }
@@ -30,13 +31,17 @@ Check ME State
30
31
... -Disabled (HAP) for 2
31
32
... -Enabled for 0
32
33
${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
41
46
END
42
47
RETURN ${result }
You can’t perform that action at this time.
0 commit comments