Skip to content

Commit

Permalink
Excluding all other folders except the acceptancetests folder while r…
Browse files Browse the repository at this point in the history
…unning acceptance tests in scripts/acctest.sh
  • Loading branch information
tmeckel committed Jun 28, 2020
1 parent 924eedc commit 35d9884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/acctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ info "Executing acceptance tests"
# - A `-run` parameter is used to target *only* tests starting with `TestAcc`. This prefix is
# recommended by Hashicorp and is documented here:
# https://www.terraform.io/docs/extend/testing/acceptance-tests/index.html#test-files
TF_ACC=1 go test -timeout 120m -run ^TestAcc -tags "${*:-all}" -v ./... || fatal "Build finished in error due to failed tests"
TF_ACC=1 go test -timeout 120m -run ^TestAcc -tags "${*:-all}" -v $(go list ./... | grep acceptancetests) || fatal "Build finished in error due to failed tests"
)

0 comments on commit 35d9884

Please sign in to comment.