Add fan testing

Add power-on system fan automation tests, and
update the fan utilities.  Update the power-off
fan tests due to changes in the utilities.
Add 'Error Logs Should Exist' keyword.

Resolves openbmc/openbmc-test-automation#1174
Resolves openbmc/openbmc-test-automation#999
Resolves openbmc/openbmc-test-automation#616

Change-Id: Ic957516c53513dad16bc4cf188d6dfd20ddc5228
Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
diff --git a/tests/test_fans.robot b/tests/test_fans.robot
index 98fc7ba..9b05226 100755
--- a/tests/test_fans.robot
+++ b/tests/test_fans.robot
@@ -22,10 +22,16 @@
     [Documentation]  Verify minimum number of fans.
     [Tags]  Fan_Base_Check_Number_Of_Fans
 
+    @{fan_names}  Create List
+    # Populate the list with the names of fans in the system.
+    ${fan_names}=  Get Fan Names  ${fan_names}
+    ${number_of_fans}=  Get Length  ${fan_names}
+
     # Determine if system is water cooled.
     ${water_coooled}=  Is Water Cooled
 
-    Verify Minimum Number Of Fans With Cooling Type  ${water_coooled}
+    Verify Minimum Number Of Fans With Cooling Type  ${number_of_fans}
+    ...  ${water_coooled}
 
 
 Fan Base Check Number Of Fan Monitors