-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: Windows test use PowerShell "getmac", not always available #20073
Comments
This doesn't appear to be present on Windows Server 2012 or 2016: https://build.golang.org/log/6ea21b99c9b8a2be20f9aeaec6c425b84faf1af7 https://build.golang.org/log/2bcf04f1df003577352f4f987a39a59a081094ee Updates #17513 Updates #20073 Change-Id: I72820704b4cb16bb1720b7f6a9f2e10028c71334 Reviewed-on: https://go-review.googlesource.com/41395 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
CL https://golang.org/cl/41395 mentions this issue. |
Wouldn't |
@as, feel free to fix things up. I don't know Windows well so I just disabled the test. |
@bradfitz what is |
Perhaps I do not understand your question. But getmac command is used in TestInterfaceHardwareAddrWithGetmac in net package. Alex |
Sorry, I meant what is the reason for shelling out |
TestInterfaceHardwareAddrWithGetmac tests the syscall. How do you propose to test syscall by calling syscall? Alex |
I misunderstood why |
No worries. Alex |
Change https://golang.org/cl/70845 mentions this issue: |
…cmdlet not available This doesn't appear to be present on Windows Server 2012 or 2016: https://build.golang.org/log/6ea21b99c9b8a2be20f9aeaec6c425b84faf1af7 https://build.golang.org/log/2bcf04f1df003577352f4f987a39a59a081094ee Updates #17513 Updates #20073 Change-Id: I72820704b4cb16bb1720b7f6a9f2e10028c71334 Reviewed-on: https://go-review.googlesource.com/41395 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-on: https://go-review.googlesource.com/70845 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Change https://golang.org/cl/82975 mentions this issue: |
Change https://golang.org/cl/85315 mentions this issue: |
this solution as it stands doesn't work with non-english device names (#23191 (which has a fix)) and names some devices differently (#23153) probably due to the fact that this test previously only ran on Server 2008. Re-opens #20073 Change-Id: I5c36774ddd85ac07620b4015372d564acbb169ad Reviewed-on: https://go-review.googlesource.com/85315 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Change https://golang.org/cl/84935 mentions this issue: |
CL 85315 was meant to reopen this issue, but the issue is still closed. Reopening manually. Alex |
The Windows tests use PowerShell "getmac", which only works in Windows Server 2008.
In 2012 and 2016, it fails.
Maybe the replacement is now "Get-NetAdapter | select Name,MacAddress" ?
/cc @alexbrainman @mikioh
The text was updated successfully, but these errors were encountered: