-
Notifications
You must be signed in to change notification settings - Fork 604
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
Fix the top command on Windows #2038
Fix the top command on Windows #2038
Conversation
a7a9f4a
to
dabd12a
Compare
dabd12a
to
2eaa39f
Compare
CI failing
|
2eaa39f
to
e450891
Compare
e450891
to
a945e3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, lets use the unix build tag convenience though
hypervServiceName := "vmms" | ||
|
||
m, err := mgr.Connect() | ||
if err != nil { | ||
t.Fatalf("unable to access Windows service control manager: %s", err) | ||
} | ||
defer m.Disconnect() | ||
|
||
s, err := m.OpenService(hypervServiceName) | ||
// hyperv service is not present, hyperv is not enabled | ||
if err != nil { | ||
t.Skip("HyperV is not enabled, skipping test") | ||
} | ||
defer s.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm adding a little helper we can use for future hyperv tests here #2062
a945e3e
to
e26cfb1
Compare
ad5440b
to
c7a803d
Compare
Signed-off-by: Dan Ardelean <dardelean@cloudbasesolutions.com>
c7a803d
to
ade009b
Compare
Ping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
The top command did not work for Windows before, the
containerTop()
function was not implemented.Signed-off-by: Dan Ardelean dardelean@cloudbasesolutions.com