aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBevan Weiss <bevan.weiss@gmail.com>2024-06-23 22:50:17 +1000
committerBob Arnson <github@bobs.org>2024-07-04 19:25:49 -0400
commit1580bf87f719ddb164f7cb776ff64892f41fc747 (patch)
treeb2ea3ca053f95b1cf6ad1f4271eb76a9b458d36e /src/test
parent18bb064b71cef2b02eba333cb4f7248ecac628f0 (diff)
downloadwix-1580bf87f719ddb164f7cb776ff64892f41fc747.tar.gz
wix-1580bf87f719ddb164f7cb776ff64892f41fc747.tar.bz2
wix-1580bf87f719ddb164f7cb776ff64892f41fc747.zip
Found a way to get the hostname.
Not sure if it's ideal, but it works.. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/sandbox/runtest_menu.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/sandbox/runtest_menu.bat b/src/test/sandbox/runtest_menu.bat
index dbddff2e..fc6ad93e 100644
--- a/src/test/sandbox/runtest_menu.bat
+++ b/src/test/sandbox/runtest_menu.bat
@@ -16,6 +16,9 @@ for /f "tokens=2 delims=[]" %%a in ('ping -n 1 -4 ""') do set IPAddr=%%a
16 set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn" 16 set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn"
17 ) 17 )
18) 18)
19FOR /F "tokens=* USEBACKQ" %%F IN (`powershell -Command "[System.Net.Dns]::GetHostEntry('localhost').HostName"`) DO (
20SET "Hostname=%%F"
21)
19 22
20:TestSelect 23:TestSelect
21cls 24cls
@@ -24,7 +27,7 @@ REM Show the test select menu
24REM We start with an entry for the Debugger if available 27REM We start with an entry for the Debugger if available
25set index=0 28set index=0
26if not "%MsVsMonPath%"=="" ( 29if not "%MsVsMonPath%"=="" (
27 echo [!index!] Run Remote Debugger [SandboxIP=%IPAddr%] 30 echo [!index!] Run Remote Debugger [IP=%IPAddr%] [Hostname=%Hostname%]
28 set "option[!index!]=%MsVsMonPath%" 31 set "option[!index!]=%MsVsMonPath%"
29) 32)
30 33