Fix x64 perf run break
authorDrew Scoggins <anscoggi@microsoft.com>
Fri, 17 Feb 2017 07:39:53 +0000 (23:39 -0800)
committerDrew Scoggins <anscoggi@microsoft.com>
Fri, 17 Feb 2017 07:39:53 +0000 (23:39 -0800)
After the checkin to add legacy JIT testing support for x86 we broke x64
runs.  THe issue is that we do not pass anything in to the TEST_ENV
variable on x64 and when a variable is empty and you attempt to use the
if exists syntax you fail.  I have added a nonsense file name that we
set this to before we go through the args loop. I was not able to find a
better solution and want to get the lab unblocked, but any batch masters
feel free to solve this the right way.

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

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

index 2ca22f8..0696fd3 100644 (file)
@@ -10,6 +10,7 @@ set CORECLR_REPO=%CD%
 set TEST_FILE_EXT=exe
 set TEST_ARCH=x64
 set TEST_CONFIG=Release
+set TEST_ENV=thisfilewillnotexist
 
 goto :ARGLOOP