config/module: parallelize some things
This commit is contained in:
parent
27564fff2b
commit
fde151978e
2
Makefile
2
Makefile
|
@ -9,7 +9,7 @@ dev: config/y.go
|
||||||
@TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh"
|
@TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh"
|
||||||
|
|
||||||
test: config/y.go
|
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
|
testacc: config/y.go
|
||||||
@if [ "$(TEST)" = "./..." ]; then \
|
@if [ "$(TEST)" = "./..." ]; then \
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
const testBBUrl = "https://bitbucket.org/hashicorp/tf-test-git"
|
const testBBUrl = "https://bitbucket.org/hashicorp/tf-test-git"
|
||||||
|
|
||||||
func TestBitBucketDetector(t *testing.T) {
|
func TestBitBucketDetector(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
if _, err := http.Get(testBBUrl); err != nil {
|
if _, err := http.Get(testBBUrl); err != nil {
|
||||||
t.Log("internet may not be working, skipping BB tests")
|
t.Log("internet may not be working, skipping BB tests")
|
||||||
t.Skip()
|
t.Skip()
|
||||||
|
|
|
@ -20,6 +20,8 @@ func TestHgGetter_impl(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHgGetter(t *testing.T) {
|
func TestHgGetter(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
if !testHasHg {
|
if !testHasHg {
|
||||||
t.Log("hg not found, skipping")
|
t.Log("hg not found, skipping")
|
||||||
t.Skip()
|
t.Skip()
|
||||||
|
@ -41,6 +43,8 @@ func TestHgGetter(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHgGetter_branch(t *testing.T) {
|
func TestHgGetter_branch(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
if !testHasHg {
|
if !testHasHg {
|
||||||
t.Log("hg not found, skipping")
|
t.Log("hg not found, skipping")
|
||||||
t.Skip()
|
t.Skip()
|
||||||
|
|
Loading…
Reference in New Issue