mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
Accept inaccessible host locks as a non-root precondition
This commit is contained in:
1 parent
77abb0ad39
commit
6e445da214
1 file changed
+4
@@ -29,6 +29,10 @@ func assertMiniUnprivileged(t *testing.T) {
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
if errors.Is(err, syscall.EACCES) || errors.Is(err, syscall.EPERM) {
|
||||
t.Logf("non-root uid=%d euid=%d; host lock path %s is inaccessible: %v", os.Getuid(), os.Geteuid(), p, err)
|
||||
return
|
||||
}
|
||||
if !errors.Is(err, os.ErrNotExist) {
|
||||
t.Fatalf("host lock preflight: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user