summaryrefslogtreecommitdiff
path: root/libvirt/provider_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt/provider_test.go')
-rw-r--r--libvirt/provider_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvirt/provider_test.go b/libvirt/provider_test.go
index 75f4d418..629f4306 100644
--- a/libvirt/provider_test.go
+++ b/libvirt/provider_test.go
@@ -2,6 +2,7 @@ package libvirt
import (
"os"
+ "strings"
"testing"
"github.com/hashicorp/terraform/helper/schema"
@@ -35,3 +36,8 @@ func testAccPreCheck(t *testing.T) {
t.Fatal("LIBVIRT_DEFAULT_URI must be set for acceptance tests")
}
}
+
+func testAccEnabled() bool {
+ v := os.Getenv("TF_ACC")
+ return v == "1" || strings.ToLower(v) == "true"
+}