Change xcopy to copy
authorDrew Scoggins <Drew Scoggins>
Mon, 8 May 2017 06:26:42 +0000 (23:26 -0700)
committerDrew Scoggins <Drew Scoggins>
Mon, 8 May 2017 08:14:09 +0000 (01:14 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/2f15c84ef9e4df3f94052a6e105d5a9cbad0d09d

src/coreclr/tests/scripts/run-xunit-perf.cmd

index 34380ac..c298403 100644 (file)
@@ -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