aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-26 07:51:16 +0900
committerOphestra <cat@gensokyo.uk>2026-01-26 07:51:16 +0900
commit92dcadbf27bbdeb60c562a72a4808066947bf695 (patch)
tree65289486ef5111c81d7f2134097799c1ff051583
parent0bd6a18326024a1056a8d9c95017a407e0822f8b (diff)
internal/acl: connect getfacl stderr
This shows whatever failure is happening in the cure container. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/acl/acl_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/acl/acl_test.go b/internal/acl/acl_test.go
index 5b1b30e7..af6da555 100644
--- a/internal/acl/acl_test.go
+++ b/internal/acl/acl_test.go
@@ -25,8 +25,7 @@ var (
func TestUpdate(t *testing.T) {
if os.Getenv("GO_TEST_SKIP_ACL") == "1" {
- t.Log("acl test skipped")
- t.SkipNow()
+ t.Skip("acl test skipped")
}
testFilePath := path.Join(t.TempDir(), testFileName)
@@ -143,6 +142,7 @@ func (c *getFAclInvocation) run(name string) error {
}
c.cmd = exec.Command("getfacl", "--omit-header", "--absolute-names", "--numeric", name)
+ c.cmd.Stderr = os.Stderr
scanErr := make(chan error, 1)
if p, err := c.cmd.StdoutPipe(); err != nil {
@@ -254,7 +254,7 @@ func getfacl(t *testing.T, name string) []*getFAclResp {
t.Fatalf("getfacl: error = %v", err)
}
if len(c.pe) != 0 {
- t.Errorf("errors encountered parsing getfacl output\n%s", errors.Join(c.pe...).Error())
+ t.Errorf("errors encountered parsing getfacl output\n%s", errors.Join(c.pe...))
}
return c.val
}