Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: improve shell compatibility of netstat check in test #16141

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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jan 15, 2025

When I wrote the original just the other day, I used $?, which is fine on CI and in most cases. It's not fine when the person running the test has their system shell set to Fish. In the interest of letting this test pass locally, we'll instead just grab the line count of the grep output. However, wc is padded on macos with spaces, so we need to get rid of those too.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@ethanndickson ethanndickson marked this pull request as ready for review January 15, 2025 03:10
@ethanndickson ethanndickson enabled auto-merge (squash) January 15, 2025 03:11
@ethanndickson ethanndickson merged commit 2413106 into main Jan 15, 2025
45 checks passed
@ethanndickson ethanndickson deleted the ethan/netstat-test-fix branch January 15, 2025 03:23
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant