Fix copy error in perf script
authorDrew Scoggins <Drew Scoggins>
Mon, 8 May 2017 05:09:20 +0000 (22:09 -0700)
committerDrew Scoggins <Drew Scoggins>
Mon, 8 May 2017 05:09:20 +0000 (22:09 -0700)
When I merged the PR that enabled the lean runs I added another call to
our run script.  This run script had an assumption that it would only
ever be called once and as such would try and copy two files that had
the same name.  This would cause it to prompt to overwrite or not and
fail the run.  This change makes each copy unique based on the
collection flags that were used for collection.

Commit migrated from https://github.com/dotnet/coreclr/commit/fa0ee737a0c05b1e3db83f508fd1b8018da97b61

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

index e279fa3..34380ac 100644 (file)
@@ -107,8 +107,8 @@ setlocal
   )
 
   rem Save off the results to the root directory for recovery later in Jenkins
-  call :run_cmd xcopy "Perf-%BENCHNAME%*.xml" "%CORECLR_REPO%\" || exit /b 1
-  call :run_cmd xcopy "Perf-%BENCHNAME%*.etl" "%CORECLR_REPO%\" || exit /b 1
+  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
 
   exit /b 0