-
Notifications
You must be signed in to change notification settings - Fork 654
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 #2323
xds interop: Fix buildscripts not continuing on a failed test suite #2323
Conversation
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".
Same as grpc/grpc#32093. |
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.
I think I understand why the current code might not be working: 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. If that is the problem, changing it to a pre-increment should fix it.
I don't understand how adding && true
could ever possibly do anything. It's like writing && true
in other languages.
In this case, we're doing the same, just after the increment op. But good idea with the pre-increment. I'll give it a try. |
Yep, you're right. Pre-increment works. However, the |
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.
Address the feedback: use pre-increment instead of && true
EDIT: this was supposed to be the commit message
… suite (#9817)" (#9831) This reverts commit d83a599. Reverted in favor of better syntax suggested here: grpc/grpc-node#2323 (review). This fix will be sent as another PR for the convenience of backporting.
…t-suites xds interop: Fix buildscripts not continuing on a failed test suite
…t-suites xds interop: Fix buildscripts not continuing on a failed test suite
…t-suites xds interop: Fix buildscripts not continuing on a failed test suite
…t-suites xds interop: Fix buildscripts not continuing on a failed test suite
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".