Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

test: keep per-test log directories in the FUSE DLM harness (#10893)

Chris Lu9d06f2c378e9
diff --git a/test/fuse_dlm/framework_test.go b/test/fuse_dlm/framework_test.go
index 13cecec8f7..69f4dbfd8f 100644
--- a/test/fuse_dlm/framework_test.go
+++ b/test/fuse_dlm/framework_test.go
@@ -8,6 +8,7 @@ import (
"os/exec"
"path/filepath"
"strconv"
+ "strings"
"sync"
"syscall"
"testing"
@@ -263,7 +264,10 @@ func (c *dlmTestCluster) tailLog(name string) string {
}
func (c *dlmTestCluster) copyLogsForCI() {
- ciLogDir := "/tmp/seaweedfs-fuse-dlm-logs"
+ // One subdirectory per test: a flat layout lets every teardown overwrite
+ // the previous test's logs, so the CI artifact only ever shows the last
+ // cluster, never the failing one.
+ ciLogDir := filepath.Join("/tmp/seaweedfs-fuse-dlm-logs", strings.ReplaceAll(c.t.Name(), "/", "_"))
os.MkdirAll(ciLogDir, 0755)
logsDir := filepath.Join(c.baseDir, "logs")
entries, err := os.ReadDir(logsDir)