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/redfish/extended/redfish_bmc_code_update.robot b/redfish/extended/redfish_bmc_code_update.robot
index 187d462..4da0f55 100644
--- a/redfish/extended/redfish_bmc_code_update.robot
+++ b/redfish/extended/redfish_bmc_code_update.robot
@@ -226,7 +226,7 @@
# Convert from dict to list.
${software_info}= Get Dictionary Values ${software_info}
- [Return] ${software_info[0]['Priority']}
+ RETURN ${software_info[0]['Priority']}
Set BMC Image Priority To Least
diff --git a/redfish/extended/test_websocket.robot b/redfish/extended/test_websocket.robot
index 3495630..a454f86 100755
--- a/redfish/extended/test_websocket.robot
+++ b/redfish/extended/test_websocket.robot
@@ -127,7 +127,7 @@
# There may be more than one pid returned if there is an instance
# of a monitory_pgm running from a previous run.
@{pid_list}= Split String ${pid}
- [Return] ${pid_list}
+ RETURN ${pid_list}
Kill Websocket Monitor