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/openpower/ext_interfaces/test_savearea_management.robot b/openpower/ext_interfaces/test_savearea_management.robot
index c251093..5493d62 100644
--- a/openpower/ext_interfaces/test_savearea_management.robot
+++ b/openpower/ext_interfaces/test_savearea_management.robot
@@ -411,7 +411,7 @@
Return From Keyword If '${status}' == 'False' ${resp_text}
${message}= Evaluate json.loads('''${resp_text}''') json
- [Return] ${message["Description"]}
+ RETURN ${message["Description"]}
Upload Partition File To BMC
@@ -631,7 +631,7 @@
Set To Dictionary ${content_dict} ${conf_file} ${content-${index}}
END
- [Return] &{content_dict}
+ RETURN &{content_dict}
Redfish Read Partition File
@@ -747,7 +747,7 @@
FOR ${count} IN RANGE ${range}
Append To List ${file_name_list} 1KB-file${count}
END
- [Return] ${file_name_list}
+ RETURN ${file_name_list}
Redfish Upload Partition File With Range