From 18bb064b71cef2b02eba333cb4f7248ecac628f0 Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Sun, 23 Jun 2024 22:30:38 +1000 Subject: Wrap variable sets in double quotes so special characters don't break them. By default enable /noauth and /anyuser on the debugger, and don't show the security warning (/nosecuritywarn). It'll still show the firewall warning prompt. Default settings should be fine for firewall (Private networks). Signed-off-by: Bevan Weiss --- src/test/sandbox/runtest_menu.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/test') diff --git a/src/test/sandbox/runtest_menu.bat b/src/test/sandbox/runtest_menu.bat index cd11a553..dbddff2e 100644 --- a/src/test/sandbox/runtest_menu.bat +++ b/src/test/sandbox/runtest_menu.bat @@ -9,11 +9,11 @@ REM to change for each invocation of the Sandbox environment for /f "tokens=2 delims=[]" %%a in ('ping -n 1 -4 ""') do set IPAddr=%%a @if %PROCESSOR_ARCHITECTURE%=="ARM64" ( @if exist C:\sandbox\Debugger\ARM64\msvsmon.exe ( - set MsVsMonPath=C:\sandbox\Debugger\ARM64\msvsmon.exe + set "MsVsMonPath=C:\sandbox\Debugger\ARM64\msvsmon.exe /noauth /anyuser /nosecuritywarn" ) ) else ( @if exist C:\sandbox\Debugger\x64\msvsmon.exe ( - set MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe + set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn" ) ) @@ -53,13 +53,13 @@ set "TestIs=!option[%SelectTest%]!" if not "%SelectTest%"=="0" ( REM for the non-Debugger options, we want to get the basepath REM the file name, and a TestName component.. - for %%a in (%TestIs%) do set FileDir=%%~dpa - for %%b in (%TestIs%) do set FileName=%%~nxb + for %%a in (%TestIs%) do set "FileDir=%%~dpa" + for %%b in (%TestIs%) do set "FileName=%%~nxb" REM since we start from C:\build, the 3rd token in '\' is REM the 'IntegrationMsi' naming that looks good for a TestName for /f "tokens=3 delims=\" %%c in ("%TestIs%") do ( - set TestName=%%c + set "TestName=%%c" ) REM We just start these as a separate window -- cgit v1.2.3-55-g6feb