Copy combined log report in logs directory.
This change includes:
- Copy combined log report in logs folder of execution
directory.
- Appended combined report file name with timestamp.
- Ignore HTML To PDF file conversion in case of error.
Resolves openbmc/openbmc-test-automation/issues/720
Change-Id: Ief72bee0cbb7ce4a8ad126dcfe661a99610aeae0
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/extended/full_suite_regression.robot b/extended/full_suite_regression.robot
index 4cd031c..04f55d6 100755
--- a/extended/full_suite_regression.robot
+++ b/extended/full_suite_regression.robot
@@ -51,11 +51,13 @@
Run rebot --name ${OPENBMC_SYSTEMMODEL}CombinedReport ${RESULT_DIR_PATH}/output*.xml
- ${combined_report_file}= Catenate SEPARATOR= ${RESULT_DIR_PATH}
- ... /log${OPENBMC_SYSTEMMODEL}CombinedIterations ${ITERATION}Report.html
+ ${current_time}= Get Current Date result_format=%Y%m%d%H%M%S
+ ${combined_report_file}= Catenate SEPARATOR= ${EXECDIR}
+ ... /logs/CombinedLogReport${current_time}.html
+
Copy File log.html ${combined_report_file}
- Convert HTML To PDF ${combined_report_file}
+ Run Keyword And Ignore Error Convert HTML To PDF ${combined_report_file}
*** Keywords ***