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 regression in mint, with no args run all tests #279

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

harshavardhana
Copy link
Member

No description provided.

@harshavardhana harshavardhana changed the title fix regression in mint fix regression in mint, with no args run all tests Jun 14, 2018
mint.sh Outdated
exit 1
fi

for sdk in "$@"; do
Copy link
Member

Choose a reason for hiding this comment

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

What is the problem with current code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Multiple

docker run --rm --net=host -e ACCESS_KEY=minio -e SECRET_KEY=minio123 -e SERVER_ENDPOINT=localhost:9000 -e ENABLE_HTTPS=0 -e MINT_MODE=full minio/mint:edge
Running with
SERVER_ENDPOINT: localhost:9000
ACCESS_KEY:      minio
SECRET_KEY:      ***REDACTED***
ENABLE_HTTPS:    0
SERVER_REGION:   us-east-1
MINT_DATA_DIR:   /mint/data
MINT_MODE:       full

To get logs, run 'docker cp 4a78fcfd8528:/mint/log /tmp/mint-logs'

All tests ran successfully

Doesn't run any tests.

docker run --rm --net=host -e ACCESS_KEY=minio -e SECRET_KEY=minio123 -e SERVER_ENDPOINT=localhost:9000 -e ENABLE_HTTPS=0 -e MINT_MODE=full minio/mint:edge aws-sdk-go 
Running with
SERVER_ENDPOINT: localhost:9000
ACCESS_KEY:      minio
SECRET_KEY:      ***REDACTED***
ENABLE_HTTPS:    0
SERVER_REGION:   us-east-1
MINT_DATA_DIR:   /mint/data
MINT_MODE:       full

To get logs, run 'docker cp 87cafdefd031:/mint/log /tmp/mint-logs'
(1/13) Running aws-sdk-go tests ... done in 0 seconds
(2/13) Running aws-sdk-java tests ... done in 2 seconds
(3/13) Running aws-sdk-php tests ... 

If an argument is provided seems to run all tests...

mint.sh Outdated
sdks=( "$@" )

## populate all sdks except worm when no argument is given.
if [ "$#" -eq 1 ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Fix this line. [ "$#" -eq 0 ]

Copy link
Contributor

Choose a reason for hiding this comment

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

I tested locally with this fix only, i.e. if [ "$#" -eq 0 ] , mint behaves as expected.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will make that change

@deekoder
Copy link
Contributor

since @harshavardhana has made the changes requested by @balamurugana and @nitisht has approved, merging this for minio/minio pending prs merges to progress.

@deekoder deekoder merged commit 2fef3ba into minio:master Jun 15, 2018
@harshavardhana harshavardhana deleted the fix-mint branch June 15, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants