sys/syz-sysgen: fix up linux/arm/kvm hack

We have some private files that need to be excluded as well... oh, hacks.
This commit is contained in:
Dmitry Vyukov 2020-05-12 11:56:49 +02:00
parent 64d61b4117
commit 9cea41ad33

View File

@ -117,7 +117,7 @@ func main() {
// Note: syz-extract also ignores this file for arm.
top = descriptions.Filter(func(n ast.Node) bool {
pos, _, _ := n.Info()
return pos.File != "dev_kvm.txt"
return !strings.HasSuffix(pos.File, "_kvm.txt")
})
}
if OS == "test" {