-
Notifications
You must be signed in to change notification settings - Fork 391
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
end to end test with bash script #327
Conversation
And -$COLUMN cannot work with #293 (comment) script |
9dd0dfb
to
3360019
Compare
.Should() | ||
.BeEmpty(); | ||
|
||
// stdOut cannot get echo's result. So it need to write to a file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help need. If get-completions.sh
simply do an echo. stdOut cannot capture that. But testrunner output has it. I cannot make it work so I end up write to a file.
#!/usr/bin/env bash | ||
|
||
echo "hi" | ||
get_completion_function_name_from_complete_output() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omajid THANKS!!!!! IT WORKS!!!!!!!!!!!
@@ -23,4 +26,13 @@ | |||
<ProjectReference Include="..\System.CommandLine\System.CommandLine.csproj" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<None Update="dotnet-suggest-shim.bash"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to add auto copy-paste to bashrc in the future. So I let dotnet suggest carry them now to make it easier to test
won't work in CI, let me keep digging |
Removed part is to format output from one line to multi line. It is not really needed. We should keep bash script as simple as possible.
Let another sh to run auto complete and write result to a file
47ba0ce
to
ceeff10
Compare
cannot repro on mac and ubuntu :( |
@dotnet-bot test Ubuntu16.04 Release |
1 similar comment
@dotnet-bot test Ubuntu16.04 Release |
And it also removed the race for generating it
time box up for this test. i'll not keep digging this route |
Removed part is to format output from one line to multi line. It is not really needed.
We should keep bash script as simple as possible. And add end to end test with bash script
fix #293