Skip to content

Fix netcat usage for accept_timeout test#10856

Closed
shinrich wants to merge 11 commits into
apache:masterfrom
shinrich:fix-timeout-tests
Closed

Fix netcat usage for accept_timeout test#10856
shinrich wants to merge 11 commits into
apache:masterfrom
shinrich:fix-timeout-tests

Conversation

@shinrich
Copy link
Copy Markdown
Member

Adjust to use the reduced argument list for netcat that is available in the ubuntu 22 image.

@shinrich shinrich added AuTest Ubuntu Bugs related to Ubuntu Linux labels Nov 28, 2023
@shinrich shinrich self-assigned this Nov 28, 2023
@bryancall bryancall added this to the 10.0.0 milestone Dec 4, 2023
@bryancall bryancall requested a review from bneradt December 4, 2023 23:16

nc_name="nc"
ncat --help
if [ $? -le 1 ]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm surprised by -le 1 rather than -eq 0. Do some ncat commands return 1 with --help? I assume checking for 1 is intentional, but just verifying.

Related to this, we might want to consider using the built-in command -v ncat instead of ncat --help.

@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

@github-actions github-actions Bot added the Stale label Mar 12, 2024
@github-actions github-actions Bot closed this Mar 19, 2024
@ywkaras ywkaras reopened this Mar 19, 2024
@github-actions github-actions Bot closed this Mar 27, 2024
@zwoop zwoop removed this from the 10.0.0 milestone Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AuTest Stale Ubuntu Bugs related to Ubuntu Linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants