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.robot b/ipmi/test_ipmi_sel.robot
index 3207cf9..f31d616 100644
--- a/ipmi/test_ipmi_sel.robot
+++ b/ipmi/test_ipmi_sel.robot
@@ -388,7 +388,7 @@
${resp}= Run IPMI Command ${cmd}
${resp}= Split String ${resp}
- [Return] ${resp}
+ RETURN ${resp}
Get Most Recent Addition Timestamp From SEL Info
@@ -402,7 +402,7 @@
Reverse List ${addition_timestamp}
${addition_timestamp}= Evaluate "".join(${addition_timestamp})
- [Return] ${addition_timestamp}
+ RETURN ${addition_timestamp}
Get Most Recent Erase Timestamp From SEL Info
@@ -416,7 +416,7 @@
Reverse List ${erase_timestamp}
${erase_timestamp}= Evaluate "".join(${erase_timestamp})
- [Return] ${erase_timestamp}
+ RETURN ${erase_timestamp}
Get SEL Elist Last Entry Date In Epoch
@@ -429,7 +429,7 @@
${sel_entry_date}= Fetch Added SEL Date ${resp}
${epoch_date}= Convert Date ${sel_entry_date} epoch exclude_millis=yes date_format=%m/%d/%Y %H:%M:%S
- [Return] ${epoch_date}
+ RETURN ${epoch_date}
Get BMC Time In Epoch
@@ -440,7 +440,7 @@
${epoch_date}= Convert Date ${date} epoch exclude_millis=yes date_format=%m/%d/%Y %H:%M:%S
- [Return] ${epoch_date}
+ RETURN ${epoch_date}
Install Tarball For Error Creation