Skip to content
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 error that not all Linux hosts have pgrep installed #921

Merged
merged 1 commit into from
May 20, 2024

Conversation

mhaoli
Copy link
Collaborator

@mhaoli mhaoli commented May 15, 2024

In #920, we modified utils.stop_standing_subprocess to use pgrep to collect subprocess tree. While it turned out that not all Linux hosts has pgrep installed.

Thus, this PR changes to use pgrep for Mac OS while ps for Linux. I verified that most Mac OS hosts have pgrep installed, otherwise we can let users install it.


This change is Reviewable

@mhaoli mhaoli self-assigned this May 15, 2024
@mhaoli mhaoli added the bug label May 15, 2024
@mhaoli mhaoli added this to the Mobly Release 1.12.4 milestone May 15, 2024
Copy link
Collaborator

@eric100lin eric100lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @mhaoli)

@mhaoli mhaoli merged commit dd2ce76 into google:master May 20, 2024
8 checks passed
@mhaoli mhaoli changed the title Fix the error that not all Linux hosts has pgrep installed Fix the error that not all Linux hosts have pgrep installed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants