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

xds interop: Fix buildscripts not continuing on a failed test suite #5937

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

sergiitk
Copy link
Member

@sergiitk sergiitk commented Jan 18, 2023

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.

RELEASE NOTES: n/a

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.
@sergiitk sergiitk force-pushed the xds-interop-fix-buildscript-suites branch from 5c2fc32 to 425d3f6 Compare January 18, 2023 00:04
@sergiitk
Copy link
Member Author

Same as grpc/grpc#32093.

@easwars easwars merged commit 4e4d828 into grpc:master Jan 18, 2023
@sergiitk sergiitk deleted the xds-interop-fix-buildscript-suites branch January 18, 2023 00:28
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
sergiitk added a commit to sergiitk/grpc-go that referenced this pull request Jan 18, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants