From 7d15082a399e6003e9425a4afaefe9edbc5712f3 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 23 Jan 2025 12:19:21 +0100 Subject: [PATCH] add a comment --- acceptance/acceptance_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index 94e072d5e8..96c1f651c3 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -453,6 +453,9 @@ func ListDir(t *testing.T, src string) []string { var files []string err := filepath.Walk(src, func(path string, info os.FileInfo, err error) error { if err != nil { + // Do not FailNow here. + // The output comparison is happening after this call which includes output.txt which + // includes errors printed by commands which include explanation why a given file cannot be read. t.Errorf("Error when listing %s: path=%s: %s", src, path, err) return nil }