diff --git a/pkg/cmd/roachtest/test_runner.go b/pkg/cmd/roachtest/test_runner.go index 21239bf18af2..f10adfdc0cea 100644 --- a/pkg/cmd/roachtest/test_runner.go +++ b/pkg/cmd/roachtest/test_runner.go @@ -1439,7 +1439,9 @@ func zipArtifacts(path string) error { if err != nil { return err } - if !info.IsDir() && strings.HasSuffix(path, ".zip") { + dir, _ := filepath.Split(rel(path)) + isTopLevel := dir == "" + if !info.IsDir() && isTopLevel && strings.HasSuffix(path, ".zip") { // Skip any top-level zip files, which notably includes itself // and, if present, the debug.zip. return nil