Updated threshold arguments due to exceeded character length
Signed-off-by: Marissa Garza <garzam@us.ibm.com>
Change-Id: Iffb94e0732a773b8756c0f0e79295b1ec14c4de3
diff --git a/redfish/systems/test_power_voltage_readings.robot b/redfish/systems/test_power_voltage_readings.robot
index 65f914e..d8539fe 100755
--- a/redfish/systems/test_power_voltage_readings.robot
+++ b/redfish/systems/test_power_voltage_readings.robot
@@ -48,8 +48,9 @@
... Rprint Vars num_invalid_records invalid_records fmt=terse
Valid Value num_invalid_records valid_values=[0]
- ${invalid_records}= Evaluate
- ... [x for x in ${records} if not x['LowerThresholdNonCritical'] <= x['ReadingVolts'] <= x['UpperThresholdNonCritical']]
+ ${cmd} Catenate [x for x in ${records}
+ ... if not x['LowerThresholdNonCritical'] <= x['ReadingVolts'] <= x['UpperThresholdNonCritical']]
+ ${invalid_records}= Evaluate ${cmd}
${num_invalid_records}= Get Length ${invalid_records}
Run Keyword If ${num_invalid_records} > ${0}
diff --git a/redfish/systems/test_powersupply_readings.robot b/redfish/systems/test_powersupply_readings.robot
index e7ac350..4c67075 100755
--- a/redfish/systems/test_powersupply_readings.robot
+++ b/redfish/systems/test_powersupply_readings.robot
@@ -85,8 +85,9 @@
${records}= Redfish.Get Attribute ${redfish_uri} ${record_type}
- ${invalid_records}= Evaluate
- ... [x for x in ${records} if not x['LowerThresholdNonCritical'] <= x['${reading_type}'] <= x['UpperThresholdNonCritical']]
+ ${cmd} Catenate [x for x in ${records}
+ ... if not x['LowerThresholdNonCritical'] <= x['${reading_type}'] <= x['UpperThresholdNonCritical']]
+ ${invalid_records}= Evaluate ${cmd}
Valid Length invalid_records max_length=0
diff --git a/redfish/systems/test_thermal_ambient_temperatures.robot b/redfish/systems/test_thermal_ambient_temperatures.robot
index b51f1c2..e5ce228 100755
--- a/redfish/systems/test_thermal_ambient_temperatures.robot
+++ b/redfish/systems/test_thermal_ambient_temperatures.robot
@@ -51,8 +51,9 @@
${num_records}= Get Length ${records}
Rprint Vars num_records records
- ${invalid_records}= Evaluate
- ... [x for x in ${records} if not x['LowerThresholdNonCritical'] <= x['${reading_type}'] <= x['UpperThresholdNonCritical']]
+ ${cmd} Catenate [x for x in ${records}
+ ... if not x['LowerThresholdNonCritical'] <= x['${reading_type}'] <= x['UpperThresholdNonCritical']]
+ ${invalid_records}= Evaluate ${cmd}
${num_invalid_records}= Get Length ${invalid_records}
Run Keyword If ${num_invalid_records} > ${0}