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

fix: replace echo -n with echo ...\c in test #11576

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

sonbui00
Copy link
Member

Fixes #11368

Motivation

Run test fail

Modifications

Replace echo -n with echo ..\c"

Verification

make test

Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Nice catch!
LGTM

@@ -49,7 +49,7 @@ func TestEmissary(t *testing.T) {
})
t.Run("Sub-process", func(t *testing.T) {
_ = os.Remove(varRunArgo + "/ctr/main/stdout")
err := run("(sleep 60; echo 'should not wait for sub-process')& echo -n hello")
err := run(`(sleep 60; echo 'should not wait for sub-process')& echo "hello\c"`)

Choose a reason for hiding this comment

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

For other readers, note that \c is equivalent to the -n flag. They both mean to not output a trailing newline

@sonbui00 sonbui00 marked this pull request as ready for review August 15, 2023 06:38
@terrytangyuan terrytangyuan merged commit 1fd6e40 into argoproj:master Aug 15, 2023
@agilgur5 agilgur5 added area/executor area/build Build or GithubAction/CI issues labels Oct 18, 2023
terrytangyuan pushed a commit that referenced this pull request Oct 19, 2023
@agilgur5 agilgur5 changed the title fix: fail test on pr #11368 fix: new line test from pr #11368 Feb 21, 2024
@agilgur5 agilgur5 changed the title fix: new line test from pr #11368 fix: replace echo -n with echo ...\c in test Feb 21, 2024
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/executor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants