-
Notifications
You must be signed in to change notification settings - Fork 18k
net: TestInterfaceHardwareAddrWithGetmac fails if Hyper-V bridges are present #19537
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
Comments
I think @alexbrainman is familiar than me with TestInterfaceHardwareAddrWithGetmac. |
I am away from my computers. I will look at this next week. Alex |
Maybe we could skip adapter with
in its description. Alternatively, maybe we could use wmic command instead of getmac. @mappu what does this command
outputs? Thank you. Alex |
Machine in question has this output: https://gist.github.com/mappu/165e9497ac66c0e097414a6be779d07d |
I think skipping the adapter in |
Thank you for that. Unfortunately I don't see how we can use that. Do you?
If you look at the code, you will see that we already only running this test if we have English version of getmac. So skipping adapter that has "Transport Name: N/A" string in its description seems like the only way to fix this. Maybe other gophers will suggest something different. If not I will send a change. Alex |
@mappu , please, try https://go-review.googlesource.com/39071 . Does it fixes your problem? Alex |
CL https://golang.org/cl/39071 mentions this issue. |
@mappu should I submit https://golang.org/cl/39071 or not? Alex |
Hi, I set up a new Windows machine in the same configuration (Hyper-V Virtual Switch) and rebuilt go from git source. Check master (
Obtain CL version:
Build CL version:
So i agree the CL does fix the issue. Please do merge it because it's my only single test failure. Thanks for your work |
Thank you for checking. Hopefully someone will review my CL and it will get submitted soon. Alex |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +ec091b6 Mon Mar 13 23:43:16 2017 +0000 windows/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
all.bat
What did you expect to see?
Test success
What did you see instead?
Test failure:
I guess it's a similar problem as in #14130 (comment) although that was closed already.
For me "Ethernet 3" does appear in the output of
getmac /fo list /v
, but, it does not appear inipconfig
.I assume it's caused by the presence of a Hyper-V bridge, that's the only unusual thing about my network configuration.
The text was updated successfully, but these errors were encountered: