From 85768b763874af91d2aa5c7f6ce82acdccbff5b2 Mon Sep 17 00:00:00 2001 From: Andrey Kostov Date: Wed, 4 Feb 2015 11:39:41 -0800 Subject: [PATCH] Skip s3 tests if no region is specified --- storagedriver/s3/s3_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storagedriver/s3/s3_test.go b/storagedriver/s3/s3_test.go index 563b9d0e..0175e8ac 100644 --- a/storagedriver/s3/s3_test.go +++ b/storagedriver/s3/s3_test.go @@ -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 "" }