Skip to content

Fix [feature] tests failing on nightly run - #6723

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:consolehost-test
Apr 24, 2018
Merged

Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:consolehost-test

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Apr 24, 2018 •

Copy link
Copy Markdown
Member

PR Summary

For ConsoleHosts tests, the test is validating error condition, but did not redirect stderr to stdout so the output isn't captured and thus an empty string failing the assertion.

For SSHConnectionInfo API tests, it's calling a constructor that got overwritten with a new parameter. Fix is to put back that public api and overload it with a new one.

PR Checklist

need to redirect stderr to stdout so output is captured correctly
@daxian-dbw

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) Travis CI failed due to SSH Remoting test failure. Could you please take a look? Thanks!

@TravisEz13

Copy link
Copy Markdown
Member

other errors need to be fixed

change to add `subsystem` support to SSHConnectionInfo overwrote existing api, should have been overload
@SteveL-MSFT Steve Lee (SteveL-MSFT) changed the title Fix test to redirect stderr to stdout for error validation test Fix [feature] tests failing on nightly run Apr 24, 2018
@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit a9d10dd into PowerShell:master Apr 24, 2018
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the consolehost-test branch April 24, 2018 23:27
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
- For ConsoleHosts tests, the test is validating error condition, but did not redirect stderr to stdout so the output isn't captured and thus an empty string failing the assertion.
- For SSHConnectionInfo API tests, it's calling a constructor that got overwritten with a new parameter. Fix is to put back that public API and overload it with a new one.
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.

6 participants