marcoabreu commented on a change in pull request #11199: [MXNET-538] Add XUnit to python tests URL: https://github.com/apache/incubator-mxnet/pull/11199#discussion_r195606253
########## File path: Jenkinsfile ########## @@ -92,6 +92,20 @@ echo ${libs} | sed -e 's/,/ /g' | xargs md5sum """ } +def collect_test_results_unix(original_file_name, new_file_name) { + echo 'Saving python test results for ' + new_file_name + // Rename file to make it distinguishable. Unfortunately, it's not possible to get STAGE_NAME in a parallel stage + sh 'cp ' + original_file_name + ' ' + new_file_name + archiveArtifacts artifacts: new_file_name +} + +def collect_test_results_windows(original_file_name, new_file_name) { Review comment: The copy is in order to have the file with a unique filename. archiveArtifacts identifies files by their filename. If we have two scripts producing a file called 'nosetests_python_unittest.xml', it will override the first with the second. This copy ensures that the files gets renamed to a unique-per-run filename. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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