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/lib/energy_scale_utils.robot b/lib/energy_scale_utils.robot
index c6bd94f..668adc3 100755
--- a/lib/energy_scale_utils.robot
+++ b/lib/energy_scale_utils.robot
@@ -26,7 +26,7 @@
${power_limit_watts}= Redfish.Get Attribute ${power_cap_uri} PowerLimitWatts
- [return] ${power_limit_watts}
+ RETURN ${power_limit_watts}
DCMI Power Get Limits
@@ -49,7 +49,7 @@
${output}= Remove String ${output} milliseconds
${output}= Remove String ${output} seconds
&{limits}= Key Value Outbuf To Dict ${output}
- [Return] &{limits}
+ RETURN &{limits}
Get DCMI Power Limit
@@ -58,7 +58,7 @@
&{limits}= DCMI Power Get Limits
${power_setting}= Get From Dictionary ${limits} power_limit
- [Return] ${power_setting}
+ RETURN ${power_setting}
Set DCMI Power Limit And Verify
@@ -114,7 +114,7 @@
... watts setting using REST interface.
${power_limit}= Read Attribute ${CONTROL_HOST_URI}power_cap PowerCap
- [Return] ${power_limit}
+ RETURN ${power_limit}
Set DCMI Power Limit Via REST
@@ -172,7 +172,7 @@
${power_activation_setting}= Read Attribute
... ${CONTROL_HOST_URI}power_cap PowerCapEnable
- [Return] ${power_activation_setting}
+ RETURN ${power_activation_setting}
OCC Tool Upload Setup