Skip to content
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

Make env smoke test pass when run with fish #148

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

thomsj
Copy link
Contributor

@thomsj thomsj commented Oct 8, 2019

Ensure esy test script runs TestFnm.exe as child of bash process, as
env smoke test fails when parent process is fish.

package.json Outdated
@@ -73,7 +73,7 @@
"update-fnm-package": "node ./.ci/prepare-fnm-package.js",
"verify-fnm-package": "node ./.ci/prepare-fnm-package.js --fail-on-difference",
"bootstrap": ".ci/bootstrap",
"test": "esy x TestFnm.exe",
"test": "bash -c '(esy x TestFnm.exe)'",
Copy link
Owner

Choose a reason for hiding this comment

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

What do you think about changing the test to use --shell=bash explicitly instead of implying it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😂

That's what I did first, but I thought you would want to keep testing System.Shell.infer(). Is that tested elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose it is tested in the feature tests since they don't include --shell=bash explicitly. Would you prefer --shell=bash?

Copy link
Owner

Choose a reason for hiding this comment

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

I think that yes. This is a smoke test, not a full-blown test. I'd rather unit-test it with a feature test, where lots of things are implicit

Add `--shell=bash` so test passes when run with fish.
@thomsj thomsj changed the title Make sure esy test script runs bash Make env smoke test pass when run with fish Oct 9, 2019
@Schniz Schniz added the PR: Internal An internal work has been made label Oct 10, 2019
@Schniz
Copy link
Owner

Schniz commented Oct 10, 2019

Looks great! Thanks!

@Schniz Schniz merged commit 5e9f7c3 into Schniz:master Oct 10, 2019
@thomsj thomsj deleted the run-test-with-bash branch October 10, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Internal An internal work has been made
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants