Add check to verify the IPMI output
Changes:
- Fail if the IPMI output doesn't contains.
Resolves openbmc/openbmc-test-automation#1421
Change-Id: I174b28ea39b318160b8d44bcaa38cda04031cfa7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/ipmi/test_general_ipmi.robot b/tests/ipmi/test_general_ipmi.robot
index 117a1e0..f4b9e4c 100644
--- a/tests/ipmi/test_general_ipmi.robot
+++ b/tests/ipmi/test_general_ipmi.robot
@@ -215,6 +215,8 @@
# Baseboard temperature sensors(42h) 1 +35 C
${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10
+ Should Contain ${temp_reading} Inlet air temperature
+ ... msg="Unable to get inlet temperature via DCMI".
${ambient_temp_line}=
... Get Lines Containing String ${temp_reading}
... Inlet air temperature case-insensitive
@@ -372,6 +374,8 @@
# Baseboard temperature sensors(42h) 1 +35 C
${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10
+ Should Contain ${temp_reading} Baseboard temperature sensors
+ ... msg="Unable to get baseboard temperature via DCMI".
${baseboard_temp_line}=
... Get Lines Containing String ${temp_reading}
... Baseboard temperature case-insensitive=True