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

Only use ps 'flags' for macOS #1412

Merged
merged 2 commits into from
Aug 7, 2023
Merged

Only use ps 'flags' for macOS #1412

merged 2 commits into from
Aug 7, 2023

Conversation

WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Aug 5, 2023

This PR adds in an operating system check via uname to determine if we should run the PS command with the 'flags' flag. This feature was originally used to determine the architecture of a process for macOS M1 machines that can run as x64 or as arm64.

AD7Process only uses the flags field in macOS so this PR updates the command sent to only use it on macOS machines.

Other changes:

  • Updated the setup.csx script to update VS with VS.list instead of VS.Codespaces.list
  • Updated tests to use the new PSOutputParser
  • Added a macOS test

Testing:

  • macOS SSH
  • WSL Ubuntu

This PR adds in an operating system check via uname to determine if we
should run the PS command with the 'flags' flag. This feature was
originally used to determine the architecture of a process for macOS M1
machines that can run as x64 or as arm64.

AD7Process only uses the flags field in macOS so this PR updates the
command sent to only use it on macOS machines.

Other changes:
- Updated the setup.csx script to update VS with VS.list instead of
  VS.Codespaces.list
- Updated tests to use the new PSOutputParser
- Added a macOS test
Copy link
Member

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@WardenGnaw WardenGnaw merged commit 76427bb into main Aug 7, 2023
@WardenGnaw WardenGnaw deleted the dev/waan/fixPSForBusyBox branch August 7, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants