terraform test: fix regression when running with no tests (#37475)

pull/37477/head
Ricard Bejarano 9 months ago
parent e6dfb537e9
commit fc5af644b0
No known key found for this signature in database

@ -99,7 +99,7 @@ func (runner *TestSuiteRunner) Test() (moduletest.Status, tfdiags.Diagnostics) {
// collisions, as the test directory variables should take precedence.
maps.Copy(testDirectoryGlobalVariables, runner.GlobalTestVariables)
suite.Status = moduletest.Pending
suite.Status = moduletest.Pass
for _, name := range slices.Sorted(maps.Keys(suite.Files)) {
if runner.Cancelled {
return suite.Status, diags

Loading…
Cancel
Save