Skip to content

Only use ps 'flags' for macOS#1412

Merged
WardenGnaw merged 2 commits intomainfrom
dev/waan/fixPSForBusyBox
Aug 7, 2023
Merged

Only use ps 'flags' for macOS#1412
WardenGnaw merged 2 commits intomainfrom
dev/waan/fixPSForBusyBox

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