diff --git a/integration-tests/pkg/common/utils.go b/integration-tests/pkg/common/utils.go index ade8aabba3..cd3a39427d 100644 --- a/integration-tests/pkg/common/utils.go +++ b/integration-tests/pkg/common/utils.go @@ -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...) diff --git a/integration-tests/suites/base.go b/integration-tests/suites/base.go index b439ceacf8..1e41e48934 100644 --- a/integration-tests/suites/base.go +++ b/integration-tests/suites/base.go @@ -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}) } }