node: report error on xattr retrieval using standard error logging

This commit is contained in:
Michael Eischer
2025-10-03 18:55:46 +02:00
parent f2b9ea6455
commit df7924f4df
17 changed files with 30 additions and 29 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func setAndVerifyXattr(t *testing.T, file string, attrs []restic.ExtendedAttribu
nodeActual := &restic.Node{
Type: restic.NodeTypeFile,
}
rtest.OK(t, nodeFillExtendedAttributes(nodeActual, file, false))
rtest.OK(t, nodeFillExtendedAttributes(nodeActual, file, false, t.Logf))
rtest.Assert(t, nodeActual.Equals(*node), "xattr mismatch got %v expected %v", nodeActual.ExtendedAttributes, node.ExtendedAttributes)
}
@@ -59,7 +59,7 @@ func setAndVerifyXattrWithSelectFilter(t *testing.T, file string, testAttr []tes
nodeActual := &restic.Node{
Type: restic.NodeTypeFile,
}
rtest.OK(t, nodeFillExtendedAttributes(nodeActual, file, false))
rtest.OK(t, nodeFillExtendedAttributes(nodeActual, file, false, t.Logf))
// Check nodeActual to make sure only xattrs we expect are there
for _, testAttr := range testAttr {