aws: Only fail on missing TF_ACC_ID if we're actually running acc. tests

This commit is contained in:
Radek Simko 2015-10-03 09:25:03 -07:00
parent cf98cbc9ad
commit 1335131daa
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ func TestAccAWSRouteTable_vpcPeering(t *testing.T) {
var v ec2.RouteTable var v ec2.RouteTable
acctId := os.Getenv("TF_ACC_ID") acctId := os.Getenv("TF_ACC_ID")
if acctId == "" { if acctId == "" && os.Getenv(resource.TestEnvVar) != "" {
t.Fatal("Error: Test TestAccAWSRouteTable_vpcPeering requires an Account ID in TF_ACC_ID ") t.Fatal("Error: Test TestAccAWSRouteTable_vpcPeering requires an Account ID in TF_ACC_ID ")
} }