config/module: parallelize some things

This commit is contained in:
Mitchell Hashimoto 2014-09-16 12:02:35 -07:00
parent 27564fff2b
commit fde151978e
3 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@ dev: config/y.go
@TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh"
test: config/y.go
TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s
TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4
testacc: config/y.go
@if [ "$(TEST)" = "./..." ]; then \

View File

@ -8,6 +8,8 @@ import (
const testBBUrl = "https://bitbucket.org/hashicorp/tf-test-git"
func TestBitBucketDetector(t *testing.T) {
t.Parallel()
if _, err := http.Get(testBBUrl); err != nil {
t.Log("internet may not be working, skipping BB tests")
t.Skip()

View File

@ -20,6 +20,8 @@ func TestHgGetter_impl(t *testing.T) {
}
func TestHgGetter(t *testing.T) {
t.Parallel()
if !testHasHg {
t.Log("hg not found, skipping")
t.Skip()
@ -41,6 +43,8 @@ func TestHgGetter(t *testing.T) {
}
func TestHgGetter_branch(t *testing.T) {
t.Parallel()
if !testHasHg {
t.Log("hg not found, skipping")
t.Skip()