Robot Framework 7.0 changes
Update robot code syntax overall in the repo
Changes:
- Update the requirement.txt package version for robot
- The '[Return]' setting is deprecated.
Use the 'RETURN' statement instead.
- Singular section headers like '*** Test Case ***'
are deprecated. Use plural format like
'*** Test Cases ***' instead.
- Singular section headers like '*** Variable ***'
are deprecated
Tested:
- Ran from sandbox with the version
$ robot --version
Robot Framework 7.0 (Python 3.10.12 on linux)
and also tested on latest python version
Robot Framework 7.0 (Python 3.11.9 on linux)
Change-Id: I54e85f9d799556c63b9a39f79483f83e9b980768
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_inband_sdr.robot b/ipmi/test_ipmi_inband_sdr.robot
index 7a2f863..a6dcdcb 100644
--- a/ipmi/test_ipmi_inband_sdr.robot
+++ b/ipmi/test_ipmi_inband_sdr.robot
@@ -365,7 +365,7 @@
${output}= Run IPMI Standard Command sdr elist all
${sensor_list}= Split String ${output} \n
${sensor_count}= Get Length ${sensor_list}
- [Return] ${sensor_count}
+ RETURN ${sensor_count}
Get Device SDR Info For Sensor Data
@@ -375,7 +375,7 @@
${sensor_data}= Run Inband IPMI Standard Command
... raw ${IPMI_RAW_CMD['Device_SDR']['Get_Info'][0]}
- [Return] ${sensor_data}
+ RETURN ${sensor_data}
Get Device SDR Info For SDR Data
@@ -385,7 +385,7 @@
${SDR_data}= Run Inband IPMI Standard Command
... raw ${IPMI_RAW_CMD['Device_SDR']['Get_Info'][1]}
- [Return] ${SDR_data}
+ RETURN ${SDR_data}
Get Sensor Count From SDR Info
@@ -399,7 +399,7 @@
${sensor_count}= Set Variable ${sensor_data[0]}
${sensor_count}= Convert To Integer ${sensor_count} 16
- [Return] ${sensor_count}
+ RETURN ${sensor_count}
Get SDR Count From SDR Info
@@ -413,7 +413,7 @@
${SDR_count}= Set Variable ${SDR_data[0]}
${SDR_count}= Convert To Integer ${SDR_count} 16
- [Return] ${SDR_count}
+ RETURN ${SDR_count}
Get Device SDR Timestamp
@@ -440,7 +440,7 @@
${timestamp}= Zfill Data ${timestamp} 8
${timestamp}= Convert To Integer ${timestamp} 16
- [Return] ${timestamp}
+ RETURN ${timestamp}
Get Count for Sensor And SDR Elist All
@@ -451,7 +451,7 @@
# Get SDR elist all via IPMI lanplus.
${SDR_count}= Get IPMI Sensor Count
- [Return] ${sensor_count} ${SDR_count}
+ RETURN ${sensor_count} ${SDR_count}
Get Reserve Device SDR Repository
@@ -461,7 +461,7 @@
${resp}= Run Inband IPMI Standard Command
... raw ${IPMI_RAW_CMD['Device_SDR']['Reserve_Repository'][0]}
- [Return] ${resp}
+ RETURN ${resp}
Get IPMI SDR Status Info
@@ -489,7 +489,7 @@
... case-insensitive
${setting_status}= Fetch From Right ${setting_line} :${SPACE}
- [Return] ${setting_status}
+ RETURN ${setting_status}
Get Record Count And Last Record From SDR
@@ -503,7 +503,7 @@
# Then Last record ID will be 57 (in decimal) - 39h.
${last_record}= Evaluate ${record_count} - 1
- [Return] ${record_count} ${last_record}
+ RETURN ${record_count} ${last_record}
Suite Setup Execution