Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[MXNET-538] Add XUnit test result publishing to windows (#11348)
Browse files Browse the repository at this point in the history
* Add test result publishing to windows

* Fix names of files

* Fix syntax of xcopy on Windows
  • Loading branch information
marcoabreu authored Jun 25, 2018
1 parent 7d91602 commit 225f71f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def collect_test_results_unix(original_file_name, new_file_name) {
def collect_test_results_windows(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
bat 'xcopy ' + original_file_name + ' ' + new_file_name
bat 'xcopy ' + original_file_name + ' ' + new_file_name + '*'
archiveArtifacts artifacts: new_file_name
}

Expand Down Expand Up @@ -786,8 +786,7 @@ try {
del /S /Q ${env.WORKSPACE}\\pkg_vc14_cpu\\python\\*.pyc
C:\\mxnet\\test_cpu.bat"""
} finally {
// We are unable to modify test_cpu.bat, so we can't track test failures on Windows
// collect_test_results_windows('nosetests.xml', 'nosetests_windows_python2_cpu.xml')
collect_test_results_windows('nosetests_unittest.xml', 'nosetests_unittest_windows_python2_cpu.xml')
}
}
}
Expand All @@ -809,8 +808,7 @@ try {
del /S /Q ${env.WORKSPACE}\\pkg_vc14_cpu\\python\\*.pyc
C:\\mxnet\\test_cpu.bat"""
} finally {
// We are unable to modify test_cpu.bat, so we can't track test failures on Windows
// collect_test_results_windows('nosetests.xml', 'nosetests_windows_python3_cpu.xml')
collect_test_results_windows('nosetests_unittest.xml', 'nosetests_unittest_windows_python3_cpu.xml')
}
}
}
Expand All @@ -832,8 +830,8 @@ try {
del /S /Q ${env.WORKSPACE}\\pkg_vc14_gpu\\python\\*.pyc
C:\\mxnet\\test_gpu.bat"""
} finally {
// We are unable to modify test_cpu.bat, so we can't track test failures on Windows
// collect_test_results_windows('nosetests.xml', 'nosetests_windows_python2_gpu.xml')
collect_test_results_windows('nosetests_gpu_forward.xml', 'nosetests_gpu_forward_windows_python2_gpu.xml')
collect_test_results_windows('nosetests_gpu_operator.xml', 'nosetests_gpu_operator_windows_python2_gpu.xml')
}
}
}
Expand All @@ -855,8 +853,8 @@ try {
del /S /Q ${env.WORKSPACE}\\pkg_vc14_gpu\\python\\*.pyc
C:\\mxnet\\test_gpu.bat"""
} finally {
// We are unable to modify test_cpu.bat, so we can't track test failures on Windows
// collect_test_results_windows('nosetests.xml', 'nosetests_windows_python3_gpu.xml')
collect_test_results_windows('nosetests_gpu_forward.xml', 'nosetests_gpu_forward_windows_python3_gpu.xml')
collect_test_results_windows('nosetests_gpu_operator.xml', 'nosetests_gpu_operator_windows_python3_gpu.xml')
}
}
}
Expand All @@ -878,8 +876,8 @@ try {
del /S /Q ${env.WORKSPACE}\\pkg_vc14_gpu_mkldnn\\python\\*.pyc
C:\\mxnet\\test_gpu.bat"""
} finally {
// We are unable to modify test_cpu.bat, so we can't track test failures on Windows
// collect_test_results_windows('nosetests.xml', 'nosetests_windows_python3_mkldnn_Gpu.xml')
collect_test_results_windows('nosetests_gpu_forward.xml', 'nosetests_gpu_forward_windows_python3_gpu_mkldnn.xml')
collect_test_results_windows('nosetests_gpu_operator.xml', 'nosetests_gpu_operator_windows_python3_gpu_mkldnn.xml')
}
}
}
Expand Down

0 comments on commit 225f71f

Please sign in to comment.