Z19 the budget test does not match its own text

Builds: design 42 zfs-owns-zfs §31
This commit is contained in:
2026-11-13 01:09:16 +01:00
parent 7831f14a6e
commit 605c1b1ca0
+1 -1
View File
@@ -547,7 +547,7 @@ func TestTheModuleStaysWithinItsTestBudget(t *testing.T) {
n := 0
for _, f := range files {
b, _ := os.ReadFile(f)
if strings.Contains(string(b), "//go:build integration") {
if strings.Contains(string(b), "//go:"+"build integration") {
t.Errorf("%s is an integration test: the module adds none", f)
}
n += len(regexp.MustCompile(`(?m)^func Test`).FindAllString(string(b), -1))