Skip to content

Conversation

@sergiitk
Copy link
Member

@sergiitk sergiitk commented Jan 17, 2023

Backport of #9833 to v1.48.x.

Apparently there's a difference between bash 3 and bash 4. OSX comes with bash 3 out-of-box, so for whoever wrote this logic it "worked on my machine".

The (( construct returns a 0 exit code if the value is non-zero. Since the value starts at 0 and we do a post-increment, it will always fail the first time. Changing it to a pre-increment fixes the problem.

…rpc#9833)

Apparently there's a difference between bash 3 and bash 4.
OSX comes with bash 3 out-of-box, so for whoever wrote this logic
it "worked on my machine".

The `((` construct returns a 0 exit code if the value is non-zero.
Since the value starts at 0 and we do a post-increment,
it will always fail the first time.
Changing it to a pre-increment should fix it.
@sergiitk sergiitk requested a review from larry-safran January 17, 2023 21:59
@larry-safran larry-safran added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 17, 2023
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 17, 2023
@sergiitk sergiitk enabled auto-merge (squash) January 17, 2023 22:51
@sergiitk sergiitk merged commit 9eedadd into grpc:v1.48.x Jan 18, 2023
@sergiitk sergiitk deleted the backport-1.48-xds-interop-fix-buildscript-suites branch January 18, 2023 00:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants