Skip to content

Commit

Permalink
run version upgrade test in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 6, 2023
1 parent c67cf55 commit 04baf22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upgradetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ type repositoryTag struct {

//goland:noinspection GoUnusedExportedFunction
func ModuleUpgradeTest(t *testing.T, owner, repo, moduleFolderRelativeToRoot, currentModulePath string, opts terraform.Options, currentMajorVer int) {
t.Parallel()
logger.Log(t, fmt.Sprintf("===> Starting test for %s/%s/examples/%s, since we're running tests in parallel, the test log will be buffered and output to stdout after the test was finished.", owner, repo, moduleFolderRelativeToRoot))
l := NewMemoryLogger()
defer func() { _ = l.Close() }()
opts.Logger = logger.New(l)

err := moduleUpgrade(t, owner, repo, moduleFolderRelativeToRoot, currentModulePath, retryableOptions(t, opts), currentMajorVer)
if err == CannotTestError || err == SkipV0Error {
t.Skipf(err.Error())
Expand Down

0 comments on commit 04baf22

Please sign in to comment.