Skip to content

Fix: Check returned STDERR and STDOUT in validation tests#3502

Open
ipspace wants to merge 2 commits into
devfrom
validate-stderr
Open

Fix: Check returned STDERR and STDOUT in validation tests#3502
ipspace wants to merge 2 commits into
devfrom
validate-stderr

Conversation

@ipspace

@ipspace ipspace commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Some versions of Arista EOS return error messages on stderr. SSH client sends those messages to (local) stderr, and the validation code did not get them. This fix combines stderr and stdout returned by SSH (or docker exec) into a single string that can be checked by the validation code.

Fixes #3496

Some versions of Arista EOS return error messages on stderr. SSH client
sends those messages to (local) stderr, and the validation code did not
get them. This fix combines stderr and stdout returned by SSH (or
docker exec) into a single string that can be checked by the validation
code.

Fixes #3496
@ipspace ipspace requested a review from Copilot June 20, 2026 05:35

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread netsim/cli/connect.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
CAPTURED_STDERR: str = ''

def get_combined_output() -> str:
global CAPTURED_STDOUT, CAPTURED_STDERR

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

global not needed here, only when the value is changed

@jbemmel jbemmel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit

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.

cEOS failed ping validation can be misclassified when stdout is empty

3 participants