Simplify running cmd.Main() for external tests (#3636)

An external test that runs cmd.Main() has a difficulty to set cmd arguments
and MINIO_{ACCESS,SECRET}_KEY values, this commit changes a little the current
behavior in a way that helps external tests.
This commit is contained in:
Anis Elleuch
2017-01-27 00:22:41 +01:00
committed by Harshavardhana
parent cccf77229d
commit 8e49a3d047
3 changed files with 16 additions and 8 deletions

View File

@@ -22,8 +22,12 @@
package main // import "github.com/minio/minio"
import minio "github.com/minio/minio/cmd"
import (
"os"
minio "github.com/minio/minio/cmd"
)
func main() {
minio.Main()
minio.Main(os.Args, os.Exit)
}