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

fix resetting SDK return value by jq's return value #204

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

nitisht
Copy link
Contributor

@nitisht nitisht commented Oct 23, 2017

No description provided.

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
Copy link
Member

@balamurugana balamurugana Oct 23, 2017

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

Copy link
Contributor Author

@nitisht nitisht Oct 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@balamurugana balamurugana left a 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=$?
Copy link
Member

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

@nitisht nitisht changed the title Update return value to 1 in failure case fix resetting SDK return value by jq's return value Oct 23, 2017
Copy link
Member

@balamurugana balamurugana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@balamurugana balamurugana merged commit bb76898 into minio:master Oct 23, 2017
@nitisht nitisht deleted the exit-on-fail branch January 22, 2018 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants