Skip to content

Commit

Permalink
Improve support for subtests
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Oct 1, 2024
1 parent 76d367d commit add549f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration-tests/pkg/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func PrepareLog(testName string, logName string) (*os.File, error) {
".", "container-logs",
config.VMInfo().Config,
config.CollectionMethod(),
strings.ReplaceAll(testName, "/", "_"),
testName,
}

logDirectory := filepath.Join(pathSections...)
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/suites/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (s *IntegrationTestSuiteBase) cleanupContainers(containers ...string) {
exists, _ := s.Executor().ContainerExists(executor.ContainerFilter{Name: container})
if exists {
s.Executor().KillContainer(container)
s.Executor().CaptureLogs(s.collector.TestName(), container)
s.Executor().CaptureLogs(s.T().Name(), container)
s.Executor().RemoveContainer(executor.ContainerFilter{Name: container})
}
}
Expand Down

0 comments on commit add549f

Please sign in to comment.