Address issue for deprecated syntax
Change from :FOR to FOR/END to address a new WARNING in
the new robot version.
Sample warning message as mention below.
FOR loop starting on line 26: For loop header
': FOR' is deprecated. Use 'FOR' instead.
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
Change-Id: I1720b3c7e6fbbafda3fca6f91edf97c80fdd9f41
diff --git a/extended/code_update/code_update_utils.robot b/extended/code_update/code_update_utils.robot
index 6946d90..3a4df5f 100755
--- a/extended/code_update/code_update_utils.robot
+++ b/extended/code_update/code_update_utils.robot
@@ -79,9 +79,10 @@
# Description of argument(s):
# image_file_path Downloaded BMC tar file image path.
- : FOR ${index} IN RANGE 0 4
- \ ${status}= Retry SCP ${image_file_path}
- \ Exit For Loop If '${status}' == '${True}'
+ FOR ${index} IN RANGE 0 4
+ ${status}= Retry SCP ${image_file_path}
+ Exit For Loop If '${status}' == '${True}'
+ END
Retry SCP
diff --git a/extended/full_suite_regression.robot b/extended/full_suite_regression.robot
index b767c1c..a4a62a7 100755
--- a/extended/full_suite_regression.robot
+++ b/extended/full_suite_regression.robot
@@ -37,13 +37,15 @@
Log To Console ${RESULT_DIR_PATH}
Create Directory ${RESULT_DIR_PATH}
- : FOR ${INDEX} IN RANGE 0 ${ITERATION}
- \ Log To Console \n Iteration: no_newline=True
- \ Log To Console ${INDEX}
- \ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND}
- \ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml
- \ Copy File output.xml ${RESULT_DIR_PATH}/output${INDEX}.xml
- \ Copy File log.html ${RESULT_DIR_PATH}/log${INDEX}.html
+ FOR ${INDEX} IN RANGE 0 ${ITERATION}
+ Log To Console \n Iteration: no_newline=True
+ Log To Console ${INDEX}
+ Run OPENBMC_HOST=${OPENBMC_HOST} tox -e ${OPENBMC_SYSTEMMODEL} -- ${LOOP_TEST_COMMAND}
+ Run sed -i 's/'${OPENBMC_HOST}'/DUMMYIP/g' output.xml
+ Copy File output.xml ${RESULT_DIR_PATH}/output${INDEX}.xml
+ Copy File log.html ${RESULT_DIR_PATH}/log${INDEX}.html
+ END
+
Create Combined Report
[Documentation] Using output[?].xml and create combined log.html
@@ -81,4 +83,4 @@
${output}=
... Run wkhtmltopdf ./${combined_report_html_file_path} ./${combined_report_pdf_file_path}
Should Not Be Empty ${output}
- OperatingSystem.File Should Exist ${combined_report_pdf_file_path}
\ No newline at end of file
+ OperatingSystem.File Should Exist ${combined_report_pdf_file_path}