Updating tests/runtest.cmd to use delayed expansion for instances of `_msbuildexe`
authorTanner Gooding <tagoo@microsoft.com>
Fri, 10 Mar 2017 18:11:23 +0000 (10:11 -0800)
committerTanner Gooding <tagoo@microsoft.com>
Mon, 13 Mar 2017 16:03:16 +0000 (09:03 -0700)
tests/runtest.cmd

index e54349c..9d54289 100644 (file)
@@ -120,7 +120,7 @@ if /i "%__VSVersion%" == "vs2017" (
   set "__VCToolsRoot=%VS140COMNTOOLS%\..\..\VC"
 
   set _msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
-  if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"
+  if not exist !_msbuildexe! set _msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"
 )
 
 :: Does VS really exist?