Allow cloud tests to be run in parallel

Add the `-parallel N` switch to tell the tests to run in N processes:

```
TFE_TOKEN=$TFE_TOKEN TFE_HOSTNAME=$TFE_HOSTNAME TF_ACC=1 go test -v \
  -tags=e2e ./internal/cloud/e2e/... -parallel 4
```
This commit is contained in:
Barrett Clark
2021-11-01 13:31:41 -05:00
parent 02e62c9851
commit 9c13521d76
9 changed files with 15 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import (
)
func Test_backend_apply_before_init(t *testing.T) {
t.Parallel()
skipWithoutRemoteTerraformVersion(t)
cases := map[string]struct {