zentol commented on a change in pull request #11501: [FLINK-16480][e2e] On 
failure, add e2e logs into artifact
URL: https://github.com/apache/flink/pull/11501#discussion_r397722617
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/test-runner-common.sh
 ##########
 @@ -94,6 +94,13 @@ function post_test_validation {
     if [[ ${exit_code} == 0 ]]; then
         cleanup
     else
+        # make logs available if ARTIFACTS_DIR is set
+        if [[ ${ARTIFACTS_DIR} != "" ]]; then
+            mkdir ${ARTIFACTS_DIR}/e2e-flink-logs 
+            cp $FLINK_DIR/log/* ${ARTIFACTS_DIR}/e2e-flink-logs/
 
 Review comment:
   nit: `mv` may be faster

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to