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).
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 <bevan.weiss@gmail.com>
Bevan Weiss committed
Jun 23, 2024 at 22:30 UTC
18bb064b71cef2b02eba333cb4f7248ecac628f0
1 file changed
+5
-5
src/test/sandbox/runtest_menu.bat
+5
-5
@@ -9,11 +9,11 @@ REM to change for each invocation of the Sandbox environment
9
for /f "tokens=2 delims=[]" %%a in ('ping -n 1 -4 ""') do set IPAddr=%%a
10
@if %PROCESSOR_ARCHITECTURE%=="ARM64" (
11
@if exist C:\sandbox\Debugger\ARM64\msvsmon.exe (
12
- set MsVsMonPath=C:\sandbox\Debugger\ARM64\msvsmon.exe
12
+ set "MsVsMonPath=C:\sandbox\Debugger\ARM64\msvsmon.exe /noauth /anyuser /nosecuritywarn"
13
)
14
) else (
15
@if exist C:\sandbox\Debugger\x64\msvsmon.exe (
16
- set MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe
16
+ set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn"
17
)
18
)
19
@@ -53,13 +53,13 @@ set "TestIs=!option[%SelectTest%]!"
53
if not "%SelectTest%"=="0" (
54
REM for the non-Debugger options, we want to get the basepath
55
REM the file name, and a TestName component..
56
- for %%a in (%TestIs%) do set FileDir=%%~dpa
57
- for %%b in (%TestIs%) do set FileName=%%~nxb
56
+ for %%a in (%TestIs%) do set "FileDir=%%~dpa"
57
+ for %%b in (%TestIs%) do set "FileName=%%~nxb"
58
59
REM since we start from C:\build, the 3rd token in '\' is
60
REM the 'IntegrationMsi' naming that looks good for a TestName
61
for /f "tokens=3 delims=\" %%c in ("%TestIs%") do (
62
- set TestName=%%c
62
+ set "TestName=%%c"
63
)
64
65
REM We just start these as a separate window