diff options
-rw-r--r-- | tests/scripts/run-xunit-perf.cmd | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/scripts/run-xunit-perf.cmd b/tests/scripts/run-xunit-perf.cmd index 34380ac44a..c298403d05 100644 --- a/tests/scripts/run-xunit-perf.cmd +++ b/tests/scripts/run-xunit-perf.cmd @@ -107,8 +107,12 @@ setlocal ) rem Save off the results to the root directory for recovery later in Jenkins - call :run_cmd xcopy "Perf-%BENCHNAME%.xml" "%CORECLR_REPO%\Perf-%BENCHNAME%-%COLLECTION_FLAGS%.xml" || exit /b 1 - call :run_cmd xcopy "Perf-%BENCHNAME%.etl" "%CORECLR_REPO%\Perf-%BENCHNAME%-%COLLECTION_FLAGS%.etl" || exit /b 1 + IF EXIST "Perf-%BENCHNAME%.xml" ( + call :run_cmd copy "Perf-%BENCHNAME%.xml" "%CORECLR_REPO%\Perf-%BENCHNAME%-%COLLECTION_FLAGS%.xml" || exit /b 1 + ) + IF EXIST "Perf-%BENCHNAME%.etl" ( + call :run_cmd copy "Perf-%BENCHNAME%.etl" "%CORECLR_REPO%\Perf-%BENCHNAME%-%COLLECTION_FLAGS%.etl" || exit /b 1 + ) exit /b 0 |