-
Notifications
You must be signed in to change notification settings - Fork 179
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
Windows support for Service tool added. #3573
base: main
Are you sure you want to change the base?
Conversation
5678bbc
to
2f38007
Compare
lisa/base_tools/service.py
Outdated
output_json=True, | ||
fail_on_error=False, | ||
) | ||
if not service_status: |
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.
Use above fail_on_error, instead of custom error.
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.
Fixed
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.
it looks not fixed. Set above fail_on_error=True
, let the above line failed. If the error message is not clear, catch it and add more information.
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.
Fixed as suggested
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.
Please follow the suggestion fail_on_error=True
, so it raise exceptions if any error met.
9cfc7ab
to
727572d
Compare
5b555e0
to
72582c5
Compare
This pull request adds Windows support for the Service tool.
72582c5
to
30a8249
Compare
raise identifier | ||
|
||
def _wait_for_service(self, name: str, status: WindowsServiceStatus) -> None: | ||
timeout = 60 |
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.
Move the timeout to a parameter. 30 seconds should be enough.
force_run=True, | ||
output_json=True, | ||
) | ||
return WindowsServiceStatus(int(service_status["Status"])) |
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.
Move this line to the end of the method, so it's easy to read.
This pull request adds Windows support for the Service tool.