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_sel_time.robot b/ipmi/test_ipmi_sel_time.robot
index d60dcdd..b71e4d6 100644
--- a/ipmi/test_ipmi_sel_time.robot
+++ b/ipmi/test_ipmi_sel_time.robot
@@ -451,7 +451,7 @@
${get_sel_time}= Run IPMI Command
... ${IPMI_RAW_CMD['SEL_entry']['Get_SEL_Time'][0]}
- [Return] ${get_sel_time}
+ RETURN ${get_sel_time}
Set SEL Time Entry Via Raw Command
@@ -492,14 +492,14 @@
${sel_entry}= Get Lines Containing String ${get_sel_entry} ${event_type}
Should Contain ${sel_entry} ${event_dir} msg=Add SEL Entry failed.
- [Return] ${sel_entry}
+ RETURN ${sel_entry}
Check Current Date Time Via IPMI
[Documentation] Verify Current Date and Time Via IPMI user command.
${resp}= Run IPMI Standard Command sel time get
- [Return] ${resp}
+ RETURN ${resp}
Get Specific Sel Date
@@ -516,7 +516,7 @@
${date}= Add Time To Date
... ${current_date} ${days}d result_format=%m/%d/%Y %H:%M:%S date_format=%m/%d/%Y %H:%M:%S
- [Return] ${date}
+ RETURN ${date}
Converting Date to HexaDecimal
@@ -541,7 +541,7 @@
Reverse List ${date}
${date}= Evaluate " ".join(${date})
- [Return] ${date}
+ RETURN ${date}
Get Time Difference
@@ -557,7 +557,7 @@
${diff}= Evaluate int(${epoch_date1}) - int(${epoch_date2})
- [Return] ${diff}
+ RETURN ${diff}
Identify SEL Time
@@ -586,7 +586,7 @@
#Set SEL Time.
${quoted_date}= Fetch Date ${datetime}
- [Return] ${quoted_date} ${datetime}
+ RETURN ${quoted_date} ${datetime}
Set SEL Time Via IPMI