Skip to content

Limit run-external --redirect-combine sh test to not(Windows) - #10905

Merged
WindSoilder merged 1 commit into
nushell:mainfrom
CAD97:patch-1
Nov 7, 2023
Merged

WindSoilder merged 1 commit into
nushell:mainfrom
CAD97:patch-1

Conversation

@CAD97

@CAD97 CAD97 commented Nov 1, 2023

Copy link
Copy Markdown
Contributor

Description

Limit the test -p nu-command --test main commands::run_external::redirect_combine which uses sh to running on not(Windows) like is done for other tests assuming unixy CLI items; sh doesn't exist on Windows.

User-Facing Changes

None; this is a change to tests only.

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

@CAD97

CAD97 commented Nov 1, 2023 •

Copy link
Copy Markdown
Contributor Author

This didn't ever fail on CI because the GitHub hosted runners on Windows have bash and sh refer to Git Bash, AIUI, which is why shell: bash (mostly) works on all GitHub hosted runners. This is not something the Git for Windows installer does by default, and in fact something it advises against doing (as putting the MingW PATH onto the Windows PATH shadows some Windows items).

@sholderbach sholderbach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good call for how the test is written right now

cc @WindSoilder could we reframe that in terms of our internal testbins?

@WindSoilder

Copy link
Copy Markdown
Contributor

Not really sure if it's easy to do..
Currently our testbin can generate either stdout, or stderr, but not both

@WindSoilder
WindSoilder merged commit 9b202d5 into nushell:main Nov 7, 2023
@CAD97
CAD97 deleted the patch-1 branch November 7, 2023 19:27
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
…ell#10905)

# Description

Limit the test `-p nu-command --test main
commands::run_external::redirect_combine` which uses `sh` to running on
`not(Windows)` like is done for other tests assuming unixy CLI items;
`sh` doesn't exist on Windows.

# User-Facing Changes

None; this is a change to tests only.

# Tests + Formatting

- :green_circle: `toolkit fmt`
- :green_circle: `toolkit clippy`
- :green_circle: `toolkit test`
- :green_circle: `toolkit test stdlib`
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
…ell#10905)

# Description

Limit the test `-p nu-command --test main
commands::run_external::redirect_combine` which uses `sh` to running on
`not(Windows)` like is done for other tests assuming unixy CLI items;
`sh` doesn't exist on Windows.

# User-Facing Changes

None; this is a change to tests only.

# Tests + Formatting

- :green_circle: `toolkit fmt`
- :green_circle: `toolkit clippy`
- :green_circle: `toolkit test`
- :green_circle: `toolkit test stdlib`
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