diff options
author | Bevan Weiss <bevan.weiss@gmail.com> | 2024-06-23 22:50:17 +1000 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2024-07-04 19:25:49 -0400 |
commit | 1580bf87f719ddb164f7cb776ff64892f41fc747 (patch) | |
tree | b2ea3ca053f95b1cf6ad1f4271eb76a9b458d36e /src/test | |
parent | 18bb064b71cef2b02eba333cb4f7248ecac628f0 (diff) | |
download | wix-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.bat | 5 |
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 | ) |
19 | FOR /F "tokens=* USEBACKQ" %%F IN (`powershell -Command "[System.Net.Dns]::GetHostEntry('localhost').HostName"`) DO ( | ||
20 | SET "Hostname=%%F" | ||
21 | ) | ||
19 | 22 | ||
20 | :TestSelect | 23 | :TestSelect |
21 | cls | 24 | cls |
@@ -24,7 +27,7 @@ REM Show the test select menu | |||
24 | REM We start with an entry for the Debugger if available | 27 | REM We start with an entry for the Debugger if available |
25 | set index=0 | 28 | set index=0 |
26 | if not "%MsVsMonPath%"=="" ( | 29 | if 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 | ||