Skip to content

Conversation

@sergiitk
Copy link
Member

@sergiitk sergiitk commented Jan 17, 2023

Backport of #9833 to v1.52.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:58
@sergiitk sergiitk enabled auto-merge (squash) January 17, 2023 22:50
@sergiitk sergiitk added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 18, 2023
@grpc-kokoro grpc-kokoro removed kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary labels Jan 18, 2023
@sergiitk sergiitk merged commit 13c6313 into grpc:v1.52.x Jan 18, 2023
@sergiitk sergiitk deleted the backport-1.52-xds-interop-fix-buildscript-suites branch January 18, 2023 18:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 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