Skip s3 tests if no region is specified

pull/145/head
Andrey Kostov 2015-02-04 11:39:41 -08:00
parent 1a1d87801a
commit 85768b7638
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ func init() {
// Skip S3 storage driver tests if environment variable parameters are not provided
skipCheck := func() string {
if accessKey == "" || secretKey == "" || bucket == "" || encrypt == "" {
return "Must set AWS_ACCESS_KEY, AWS_SECRET_KEY, S3_BUCKET, and S3_ENCRYPT to run S3 tests"
if accessKey == "" || secretKey == "" || region == "" || bucket == "" || encrypt == "" {
return "Must set AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION, S3_BUCKET, and S3_ENCRYPT to run S3 tests"
}
return ""
}