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_fru_device.robot b/ipmi/test_ipmi_fru_device.robot
index dd2d225..d3376c5 100644
--- a/ipmi/test_ipmi_fru_device.robot
+++ b/ipmi/test_ipmi_fru_device.robot
@@ -211,7 +211,7 @@
Set To Dictionary ${fru} ${serial_number} ${tmp}
END
- [Return] ${fru}
+ RETURN ${fru}
Get DBUS Dictionary For FRU Devices
@@ -316,7 +316,7 @@
${resp}= Run IPMI Command ${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][0]} ${fru_device_id}
${resp}= Split String ${resp}
- [Return] ${resp[0]}
+ RETURN ${resp[0]}
Read FRU Data Via IPMI
@@ -332,7 +332,7 @@
${resp}= Run IPMI Command
... ${IPMI_RAW_CMD['FRU']['Read'][0]} ${fru_id} ${offset} 0xff
- [Return] ${resp}
+ RETURN ${resp}
Write FRU Data Via IPMI
@@ -365,7 +365,7 @@
${string}= Generate Random String ${initial_fru_length} [LETTERS]
${frudata_prefixed} ${fru_data}= Identify Request Data ${string}
- [Return] ${frudata_prefixed} ${fru_data}
+ RETURN ${frudata_prefixed} ${fru_data}
Get Default FRU Data