-
Notifications
You must be signed in to change notification settings - Fork 50
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 resetting SDK return value by jq's return value #204
Conversation
mint.sh
Outdated
@@ -87,6 +87,8 @@ function run_test() | |||
else | |||
jq . <<<"$entry" | |||
fi | |||
## as rv is overwritten above, set rv to 1 so test exits, we already know this is a failure case | |||
rv=1 |
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.
Rename rv
into something else in the else
block on line 79
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.
You mean this rv
--> https://github.com/minio/mint/blob/master/mint.sh#L79 ?
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.
done @balamurugana
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.
Also fix the commit log by
fix resetting SDK return value by jq's return value
mint.sh
Outdated
@@ -76,13 +76,13 @@ function run_test() | |||
echo "FAILED in $duration" | |||
entry=$(tail -n 1 "$BASE_LOG_DIR/$LOG_FILE") | |||
status=$(jq -e -r .status <<<"$entry") | |||
rv=$? | |||
if [ "$rv" -ne 0 ]; then | |||
ret_val=$? |
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.
jq_rv
would be more clean
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.
Tested
No description provided.